1 // g++ 1.36.1 bug 900127_02
3 // g++ (mostly) keeps separate name spaces for the declarations of data
4 // objects and functions.
6 // This means that a single name may be declared as both a data object and
7 // a function within a given scope.
9 // This fact allows programmers to write code which is not portable to the
10 // Cfront translator (which keeps a single namespace for these entities).
12 // This can also lead to ambiguity when the & (address-of) operator is used.
14 // Cfront 2.0 passes this test.
16 // keywords: name spaces, overloading
18 int global0; // ERROR -
19 int global0 (); // ERROR -
21 int global1 (); // ERROR - xref for below
22 int global1; // ERROR - caught
25 int class_local (); // ERROR -
26 int class_local; // ERROR -
30 int class_local; // ERROR -
31 int class_local (); // ERROR -
36 int function_0_local; // ERROR -
37 extern int function_0_local (); // ERROR -
42 int function_1_local (); // ERROR -
43 extern int function_1_local; // ERROR -
46 int main () { return 0; }