public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30946]  New: classes and structs are interchangeable?
@ 2007-02-24  6:06 rosenwad at bxscience dot edu
  2007-02-24  8:21 ` [Bug c++/30946] " schwab at suse dot de
  0 siblings, 1 reply; 2+ messages in thread
From: rosenwad at bxscience dot edu @ 2007-02-24  6:06 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/30946] classes and structs are interchangeable?
  2007-02-24  6:06 [Bug c++/30946] New: classes and structs are interchangeable? rosenwad at bxscience dot edu
@ 2007-02-24  8:21 ` schwab at suse dot de
  0 siblings, 0 replies; 2+ messages in thread
From: schwab at suse dot de @ 2007-02-24  8:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from schwab at suse dot de  2007-02-24 08:21 -------
This is how C++ works, see [dcl.type.elab]/3.


-- 

schwab at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30946


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-24  8:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-24  6:06 [Bug c++/30946] New: classes and structs are interchangeable? rosenwad at bxscience dot edu
2007-02-24  8:21 ` [Bug c++/30946] " schwab at suse dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).