public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5202: Elaborated type specifier doesn't work for a name in a namespace
@ 2003-01-11 23:13 neroden
0 siblings, 0 replies; 3+ messages in thread
From: neroden @ 2003-01-11 23:13 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, tkmt
Synopsis: Elaborated type specifier doesn't work for a name in a namespace
State-Changed-From-To: analyzed->closed
State-Changed-By: neroden
State-Changed-When: Sat Jan 11 15:13:41 2003
State-Changed-Why:
Fixed in 3.4 (mainline). Probably the new parser.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5202
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/5202: Elaborated type specifier doesn't work for a name in a namespace
@ 2001-12-29 3:33 nathan
0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2001-12-29 3:33 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, tkmt
Synopsis: Elaborated type specifier doesn't work for a name in a namespace
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Sat Dec 29 03:33:36 2001
State-Changed-Why:
confirmed
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5202
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/5202: Elaborated type specifier doesn't work for a name in a namespace
@ 2001-12-26 22:26 tkmt
0 siblings, 0 replies; 3+ messages in thread
From: tkmt @ 2001-12-26 22:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 5202
>Category: c++
>Synopsis: Elaborated type specifier doesn't work for a name in a namespace
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed Dec 26 22:26:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: tkmt@sm.sony.co.jp
>Release: gcc version 3.0.3
>Organization:
>Environment:
Linux 2.2.13-33 running on i686-pc
>Description:
Name look up problem.
I believe `struct CLASS_NAME' can find a class name hidden
by a function name. However, it doesn't work if CLASS_NAME
is qualified with a namespace name.
>How-To-Repeat:
-- source ----------------------------------------------------------
namespace NS {
struct stat {
};
void stat() {
}
}
struct NS::stat *x;
-- result ----------------------------------------------------------
$ gcc -v -c structerr.cc
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/specs
Configured with: ../gcc-3.0.3/configure
Thread model: single
gcc version 3.0.3
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=3 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ structerr.cc -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase structerr.cc -version -o /tmp/ccQpoKyI.s
GNU CPP version 3.0.3 (cpplib) (i386 Linux/ELF)
GNU C++ version 3.0.3 (i686-pc-linux-gnu)
compiled by GNU C version 3.0.
ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include/g++-v3
/usr/local/include/g++-v3/i686-pc-linux-gnu
/usr/local/include/g++-v3/backward
/usr/local/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/include
/usr/include
End of search list.
structerr.cc:9: `NS' does not have a nested type named `stat'
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-11 23:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-11 23:13 c++/5202: Elaborated type specifier doesn't work for a name in a namespace neroden
-- strict thread matches above, loose matches on Subject: below --
2001-12-29 3:33 nathan
2001-12-26 22:26 tkmt
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).