This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/65872] New: Multiple class prefixes in method implementation are accepted
- From: "gcc at hazlewoods dot eu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 Apr 2015 07:24:26 +0000
- Subject: [Bug c++/65872] New: Multiple class prefixes in method implementation are accepted
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65872
Bug ID: 65872
Summary: Multiple class prefixes in method implementation are
accepted
Product: gcc
Version: 4.9.2
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc at hazlewoods dot eu
Created attachment 35393
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35393&action=edit
Preprocessed file
The compiler quite happily compiles a method that declares multiple class
prefixes.
This is fairly benign, but still surprising.
Not sure what the standard says on this, but it was detected when building the
sources for another target using a different vendor's compiler; which did fail
to compile.
Originally found using 4.7 [g++ (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04) 4.7.3],
but tested against 4.9 [g++-4.9 (Ubuntu 4.9.2-0ubuntu1~12.04) 4.9.2].
g++ -W -Wall -std=c++11