This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16782] New: Accepts qualified member function declaration in class
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2004 13:16:54 -0000
- Subject: [Bug c++/16782] New: Accepts qualified member function declaration in class
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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