public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9407: [3.4 regression] Parser bug
@ 2003-01-22 21:16 rguenth
0 siblings, 0 replies; 2+ messages in thread
From: rguenth @ 2003-01-22 21:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 9407
>Category: c++
>Synopsis: [3.4 regression] Parser bug
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed Jan 22 21:16:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Richard Guenther
>Release: g++ (GCC) 3.4 20030122 (experimental)
>Organization:
>Environment:
ix86-linux
>Description:
The following testcase is rejected by the new C++ parser
and accepted by earlier g++ and EDG in strict mode.
template <int Dim>
struct Foo {
struct Bar {
Bar(int);
};
};
template <int Dim>
struct Baz : public Foo<Dim> {
void foo()
{
Foo<Dim>::Bar(1);
}
};
int main()
{
Baz<3> baz;
baz.foo();
return 0;
}
~/ix86/gcc3.4/bin/g++ -c parser2.cpp
parser2.cpp: In member function `void Baz<Dim>::foo() [with int Dim = 3]':
parser2.cpp:19: instantiated from here
parser2.cpp:12: error: no match for call to `(Foo<3>::Bar) (int)'
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/9407: [3.4 regression] Parser bug
@ 2003-01-22 21:44 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-01-22 21:44 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, rguenth
Synopsis: [3.4 regression] Parser bug
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Wed Jan 22 21:44:35 2003
State-Changed-Why:
You need to write
typename Foo<Dim>::Bar(1);
(note the "typename").
Also, there is no need to ping gcc@gcc.gnu.org for each bug
you find. The people who can fix bugs, and the people like
me who filter them, are quite comfortable with reading
gcc-bugs (where new reports are automatically posted), and
with searching the database.
-Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9407
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-22 21:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-22 21:16 c++/9407: [3.4 regression] Parser bug rguenth
2003-01-22 21:44 bangerth
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).