public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10497: Bug #909 not closed : Spurious error using nested classes in constructor calls
@ 2003-04-25 13:36 Andrew Pinski
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Pinski @ 2003-04-25 13:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/10497; it has been noted by GNATS.
From: Andrew Pinski <pinskia@physics.uc.edu>
To: have@ann.jussieu.fr
Cc: Andrew Pinski <pinskia@physics.uc.edu>, gcc-gnats@gcc.gnu.org
Subject: Re: c++/10497: Bug #909 not closed : Spurious error using nested classes in constructor calls
Date: Fri, 25 Apr 2003 09:32:59 -0400
Look at bug #925: <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=925>.
Thanks,
Andrew Pinski
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/10497: Bug #909 not closed : Spurious error using nested classes in constructor calls
@ 2003-04-25 15:06 bangerth
0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2003-04-25 15:06 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, have, nobody
Synopsis: Bug #909 not closed : Spurious error using nested classes in constructor calls
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Fri Apr 25 15:06:35 2003
State-Changed-Why:
909 was superceded by 925. 925 was closed since the issue is
fixed in present mainline (what will become 3.4). I re-verified
this, so the matter is settled.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10497
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/10497: Bug #909 not closed : Spurious error using nested classes in constructor calls
@ 2003-04-25 13:46 Gabriel Dos Reis
0 siblings, 0 replies; 4+ messages in thread
From: Gabriel Dos Reis @ 2003-04-25 13:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/10497; it has been noted by GNATS.
From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: have@ann.jussieu.fr
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/10497: Bug #909 not closed : Spurious error using nested classes in constructor calls
Date: 25 Apr 2003 15:29:46 +0200
have@ann.jussieu.fr writes:
| >Number: 10497
| >Category: c++
| >Synopsis: Bug #909 not closed : Spurious error using nested classes in constructor calls
| >Confidential: no
| >Severity: serious
| >Priority: medium
| >Responsible: unassigned
| >State: open
| >Class: sw-bug
| >Submitter-Id: net
| >Arrival-Date: Fri Apr 25 13:26:00 UTC 2003
| >Closed-Date:
| >Last-Modified:
| >Originator: have@ann.jussieu.fr
| >Release: 2.95, 3.0, 3.2, 3.3
| >Organization:
| >Environment:
| Linux
| >Description:
| Bug #909 does not seem to be fixed even if it is closed.
| With g++ > 3.0, the error becomes:
| " error: type specifier omitted for parameter `Z' "
Did you try mainline a.k.a GCC-3.4 (experimental)? I think this is a
problem with the old parser which is trying to parse this
| A a(A::Nested(i), Z); // ERROR: type specifier omitted for parameter
as a function declaration and chocks by the time it encounters 'Z'.
| A e(A::Nested(i)); // OK
the old parser can correctly parse 'e' as a declaration of a function
taking an 'A::Nested' and returning an 'A'.
-- Gaby
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/10497: Bug #909 not closed : Spurious error using nested classes in constructor calls
@ 2003-04-25 13:26 have
0 siblings, 0 replies; 4+ messages in thread
From: have @ 2003-04-25 13:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 10497
>Category: c++
>Synopsis: Bug #909 not closed : Spurious error using nested classes in constructor calls
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 25 13:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: have@ann.jussieu.fr
>Release: 2.95, 3.0, 3.2, 3.3
>Organization:
>Environment:
Linux
>Description:
Bug #909 does not seem to be fixed even if it is closed.
With g++ > 3.0, the error becomes:
" error: type specifier omitted for parameter `Z' "
>How-To-Repeat:
// Just compile this code
class A {
public:
struct Nested { Nested(int i) {} };
A(const Nested &n, int *p=0) { }
};
class B {
public:
B(const A::Nested &n, int *p=0) { }
B(const A &a, int *p=0) { }
};
int main(void)
{
int *Z=0;
int i=1;
A a(A::Nested(i), Z); // ERROR: type specifier omitted for parameter
A b(A::Nested(int(i)), Z); // ERROR: type specifier omitted for parameter
A c(A::Nested((int)i), Z); // OK
A d(A::Nested(1), Z); // OK
A e(A::Nested(i)); // OK
A f(i, Z); // OK
B g(A::Nested(i), Z); // ERROR: type specifier omitted for parameter
B h(i, Z); // OK
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-04-25 15:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-25 13:36 c++/10497: Bug #909 not closed : Spurious error using nested classes in constructor calls Andrew Pinski
-- strict thread matches above, loose matches on Subject: below --
2003-04-25 15:06 bangerth
2003-04-25 13:46 Gabriel Dos Reis
2003-04-25 13:26 have
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).