public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30800] New: Accepts invalid on 4.0.1
@ 2007-02-14 22:31 chris at bubblescope dot net
2007-02-14 22:34 ` [Bug c++/30800] " pinskia at gcc dot gnu dot org
2007-02-14 22:36 ` chris at bubblescope dot net
0 siblings, 2 replies; 3+ messages in thread
From: chris at bubblescope dot net @ 2007-02-14 22:31 UTC (permalink / raw)
To: gcc-bugs
g++ compiles the following program:
void f() {}
int main(void)
{ foobar:f(); }
This problem arose from writing a single : instead of :: for a namespace. I
can't find any correct meaning for this code, and accepting means people might
accidentally not get the namespace function they wanted. Am I missing
something?
--
Summary: Accepts invalid on 4.0.1
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: chris at bubblescope dot net
GCC host triplet: i686-apple-darwin8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30800
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/30800] Accepts invalid on 4.0.1
2007-02-14 22:31 [Bug c++/30800] New: Accepts invalid on 4.0.1 chris at bubblescope dot net
@ 2007-02-14 22:34 ` pinskia at gcc dot gnu dot org
2007-02-14 22:36 ` chris at bubblescope dot net
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-14 22:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-02-14 22:34 -------
This is way defined valid code, even though it might look a bit weird at first
glance.
foobar here is a label and nothing more.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30800
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/30800] Accepts invalid on 4.0.1
2007-02-14 22:31 [Bug c++/30800] New: Accepts invalid on 4.0.1 chris at bubblescope dot net
2007-02-14 22:34 ` [Bug c++/30800] " pinskia at gcc dot gnu dot org
@ 2007-02-14 22:36 ` chris at bubblescope dot net
1 sibling, 0 replies; 3+ messages in thread
From: chris at bubblescope dot net @ 2007-02-14 22:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from chris at bubblescope dot net 2007-02-14 22:36 -------
Ah, sorry, you are right. I stared at this for ages trying to figure out what
it could mean. Sorry.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30800
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-14 22:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-14 22:31 [Bug c++/30800] New: Accepts invalid on 4.0.1 chris at bubblescope dot net
2007-02-14 22:34 ` [Bug c++/30800] " pinskia at gcc dot gnu dot org
2007-02-14 22:36 ` chris at bubblescope dot net
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).