This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/65872] New: Multiple class prefixes in method implementation are accepted


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]