[Bug c++/16782] New: Accepts qualified member function declaration in class

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Tue Jul 27 13:16:00 GMT 2004


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



More information about the Gcc-bugs mailing list