This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30800] New: Accepts invalid on 4.0.1
- From: "chris at bubblescope dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Feb 2007 22:31:01 -0000
- Subject: [Bug c++/30800] New: Accepts invalid on 4.0.1
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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