[Bug c++/39513] class defined in file scope got linked by other files
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Mar 20 20:44:00 GMT 2009
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-03-20 20:44 -------
You are violating C++'s One definition rule (ODR). This code is undefined
because the definition of A::A() (and others) are different between the two
files.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39513
More information about the Gcc-bugs
mailing list