This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17916] New: [4.0 Regression] pragma inside classes


I noticed this while trying to compile some C++ code, I think this should be accepted.
class T
{
#pragma pack(1)
        union
        {
                struct
                {
                        char text[(sizeof(char *) + (sizeof(size_t) * 2) + 1)];
                        char length : 6;
                        bool big : 1;
                }       ministring;
        }       content;
#pragma pack()
};

-- 
           Summary: [4.0 Regression] pragma inside classes
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]