public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8526: parsing error
@ 2002-11-11 9:45 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2002-11-11 9:45 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jozef.kosoru, nobody
Synopsis: parsing error
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Mon Nov 11 09:45:45 2002
State-Changed-Why:
This is one more instance of so many other reports about
int f(X());
not working as expected. See the section about non-bugs
on the gcc homepage.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8526
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/8526: parsing error
@ 2002-11-11 7:46 jozef.kosoru
0 siblings, 0 replies; 2+ messages in thread
From: jozef.kosoru @ 2002-11-11 7:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 8526
>Category: c++
>Synopsis: parsing error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Mon Nov 11 07:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Jozef Kosoru
>Release: 3.2
>Organization:
>Environment:
Linux
>Description:
g++ is not able to copile this trivial code:
---------------------------------------------
template<typename T_>
class A
{
};
class C
{
public:
C(const A<int>&, int) {}
};
int main()
{
C(A<int>(), 0);
C c(A<int>(), 0);
}
---------------------------------------------
param.cpp: In function `int main()':
param.cpp:14: parse error before `,' token
param.cpp:16: type specifier omitted for parameter
param.cpp:16: parse error before numeric constant
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-11 17:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-11 9:45 c++/8526: parsing error bangerth
-- strict thread matches above, loose matches on Subject: below --
2002-11-11 7:46 jozef.kosoru
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).