public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5970: gcc 2.95 namespace problem
@ 2002-03-15 20:37 rodrigc
  0 siblings, 0 replies; 2+ messages in thread
From: rodrigc @ 2002-03-15 20:37 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, matoj, nobody

Synopsis: gcc 2.95 namespace problem

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Fri Mar 15 20:37:13 2002
State-Changed-Why:
    Testcase does not ICE on gcc 3.0.4:
    bug.cpp:6: parse error before `::' token
    bug.cpp:10: ISO C++ forbids declaration of `c' with no type
    bug.cpp:10: conflicting types for `int c'
    bug.cpp:9: previous declaration as `C c'
    bug.cpp:11: parse error before `}' token
    bug.cpp:12: syntax error before `:' token

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5970


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c++/5970: gcc 2.95 namespace problem
@ 2002-03-15  0:36 matoj
  0 siblings, 0 replies; 2+ messages in thread
From: matoj @ 2002-03-15  0:36 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-16  4:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-15 20:37 c++/5970: gcc 2.95 namespace problem rodrigc
  -- strict thread matches above, loose matches on Subject: below --
2002-03-15  0:36 matoj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).