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++/16782] New: Accepts qualified member function declaration in class


This is spinoff #2 from 16777: we accept this piece of code: 
------------------------ 
struct X { 
    void X::bar() {} 
}; 
------------------------ 
I'm not sure we should. icc8 gives this message: 
g/x> icc -Xc -ansi -c x.cc 
x.cc(2): warning #470: qualified name is not allowed in member declaration 
      void X::bar() {} 
           ^ 
 
 
Can someone point me to the part of the standard that clarifies this? 
 
W.

-- 
           Summary: Accepts qualified member function declaration in class
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16782


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