c++/5970: gcc 2.95 namespace problem
matoj@dec.upjs.sk
matoj@dec.upjs.sk
Fri Mar 15 00:36:00 GMT 2002
>Number: 5970
>Category: c++
>Synopsis: gcc 2.95 namespace problem
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Fri Mar 15 00:36:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: matoj@dec.upjs.sk
>Release: gcc version 2.95.2 20000220 ( Debian/GNU Linux)
>Organization:
>Environment:
i686, kernel 2.2.18pre21
>Description:
bug.cpp:25: parse error before `::'
bug.cpp:29: ANSI C++ forbids declaration `c' with no type
bug.cpp:29: conflicting types for `int c'
bug.cpp:38: previous declaration as `class C c'
bug.cpp:30: parse error before `}'
bug.cpp:30: Internal compiler error in `make_decl_rtl', at varasm.c:738
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
class C {
public:
C();
};
namespace A::B {
int i;
C c;
c;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list