public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9333: [3.4 regression] new parser rejects creation of complex templated class temporaries
@ 2003-01-15 20:26 andrew
0 siblings, 0 replies; 4+ messages in thread
From: andrew @ 2003-01-15 20:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 9333
>Category: c++
>Synopsis: [3.4 regression] new parser rejects creation of complex templated class temporaries
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed Jan 15 12:26:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Andrew Pollard
>Release: gcc-3.4-20030115
>Organization:
>Environment:
i686-pc-linux-gnu on a PIII system
>Description:
This is probably related to the (now fixed) c++/9112
I assume that this is a bug in the new parser....
temporary.cxx:
--------------
template<int foo>
struct A1 {
A1(int, int, int) {}
};
template<int foo>
struct A2 {
A2(int, int) {}
};
template<int foo>
struct B {
int b;
void bar1() { A1<foo>(b, b, b); }
void bar2() { A2<foo>(b, b); }
void bar3() { A1<foo> a1(b, b, b); }
};
--------------
% gcc34 -c temporary.cxx
temporary.cxx: In member function `void B<foo>::bar1()':
temporary.cxx:14: error: expected init-declarator
temporary.cxx:14: error: expected `,' or `;'
bar2() [ not as many constructor arguments ] and bar3() [using an explicit temporary] work.
bar1() also works in gcc-3.3/gcc-3.2 and gcc-3.4 prior to the new parser merge.
I also tried the online Comeau-C++ compiler and Intel icc-7.0 and they both accepted the code as well.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/9333: [3.4 regression] new parser rejects creation of complex templated class temporaries
@ 2003-01-23 0:24 mmitchel
0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2003-01-23 0:24 UTC (permalink / raw)
To: andrew, gcc-bugs, gcc-prs, nobody
Synopsis: [3.4 regression] new parser rejects creation of complex templated class temporaries
State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Thu Jan 23 00:24:27 2003
State-Changed-Why:
Already fixed in GCC 3.4.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9333
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/9333: [3.4 regression] new parser rejects creation of complex templated class temporaries
@ 2003-01-15 21:44 bangerth
0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-01-15 21:44 UTC (permalink / raw)
To: andrew, gcc-bugs, gcc-prs, nobody
Synopsis: [3.4 regression] new parser rejects creation of complex templated class temporaries
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Jan 15 13:44:16 2003
State-Changed-Why:
Indeed a regression. Works with present 3.3, but not with 3.4.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9333
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/9333: [3.4 regression] new parser rejects creation of complex templated class temporaries
@ 2003-01-15 20:56 Andrew Pollard
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Pollard @ 2003-01-15 20:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/9333; it has been noted by GNATS.
From: Andrew Pollard <Andrew.Pollard@brooks-pri.com>
To: andrew@andypo.net, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Cc:
Subject: Re: c++/9333: [3.4 regression] new parser rejects creation of complex
templated class temporaries
Date: Wed, 15 Jan 2003 20:53:17 +0000
Hi All,
I suspect that this is related to (the fixed c++/9112) and
c++/9285
Andrew.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-23 0:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-15 20:26 c++/9333: [3.4 regression] new parser rejects creation of complex templated class temporaries andrew
2003-01-15 20:56 Andrew Pollard
2003-01-15 21:44 bangerth
2003-01-23 0:24 mmitchel
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).