This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14668] New: declaration of `A*B::A' changes meaning of `A' from `class A'...
- From: "pluto at ds14 dot agh dot edu dot pl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Mar 2004 13:09:08 -0000
- Subject: [Bug c++/14668] New: declaration of `A*B::A' changes meaning of `A' from `class A'...
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
class A {};
class B {
static A *A;
};
A *B::A = 0;
g++3.4-20040317 compiles code without errors.
g++3.3 reports error: declaration of `A*B::A' changes meaning of `A' from
`class A'
which behavior is correct?
--
Summary: declaration of `A*B::A' changes meaning of `A' from
`class A'...
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pluto at ds14 dot agh dot edu dot pl
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: pentium3-pld-linux
GCC host triplet: pentium3-pld-linux
GCC target triplet: pentium3-pld-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14668