This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30946] New: classes and structs are interchangeable?
- From: "rosenwad at bxscience dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Feb 2007 06:06:08 -0000
- Subject: [Bug c++/30946] New: classes and structs are interchangeable?
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following will compile with no problem.
___________________________________________
class character
{
//bah
};
struct character enemy;
___________________________________________
So will
___________________________________________
struct character
{
//bah
};
class character enemy;
___________________________________________
--
Summary: classes and structs are interchangeable?
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rosenwad at bxscience dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30946