public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/2288: Redereclaration not diagnosed.
@ 2001-08-11 11:41 gdr
0 siblings, 0 replies; 3+ messages in thread
From: gdr @ 2001-08-11 11:41 UTC (permalink / raw)
To: jbourguet, vincent.martinez, gcc-bugs, gcc-prs, gdr, gdr, nobody
Synopsis: Redereclaration not diagnosed.
Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: gdr
Responsible-Changed-When: Sat Aug 11 11:41:36 2001
Responsible-Changed-Why:
Analyzed. Confirmed as a bug.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2288&database=gcc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/2288: Redereclaration not diagnosed.
@ 2001-08-11 11:42 gdr
0 siblings, 0 replies; 3+ messages in thread
From: gdr @ 2001-08-11 11:42 UTC (permalink / raw)
To: jbourguet, vincent.martinez, gcc-bugs, gcc-prs, gdr, gdr
Synopsis: Redereclaration not diagnosed.
State-Changed-From-To: open->analyzed
State-Changed-By: gdr
State-Changed-When: Sat Aug 11 11:42:24 2001
State-Changed-Why:
oops.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2288&database=gcc
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/2288: Redereclaration not diagnosed.
@ 2001-03-14 6:56 gdr
0 siblings, 0 replies; 3+ messages in thread
From: gdr @ 2001-03-14 6:56 UTC (permalink / raw)
To: gcc-gnats; +Cc: gdr, jbourguet, vincent.martinez
>Number: 2288
>Category: c++
>Synopsis: Redereclaration not diagnosed.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Wed Mar 14 06:56:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Gabriel Dos Reis, from a discussion on fr.comp.lang.c++
>Release: gcc-2.95 and gcc-3_0 are affected
>Organization:
>Environment:
Immaterial
>Description:
g++ fails to diagnose the program construct below.
The redeclaration in the controled-statement is ill-formed
as per 3.3.2/4.
>How-To-Repeat:
#include <iostream>
int main()
{
for (int i = 0; i < 10; ++i)
{
int i = 5;
std::cout << i << std::endl;
}
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-08-11 11:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-11 11:41 c++/2288: Redereclaration not diagnosed gdr
-- strict thread matches above, loose matches on Subject: below --
2001-08-11 11:42 gdr
2001-03-14 6:56 gdr
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).