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++/47482] New: [C++0x] [4.6 Regression] ICE: unexpected expression âsizeof ("A")â of kind sizeof_expr


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

           Summary: [C++0x] [4.6 Regression] ICE: unexpected expression
                    âsizeof ("A")â of kind sizeof_expr
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org


template<class>
struct K
{
   enum { A = sizeof"A" , B = +A };
};

ice.cc:4:32: internal compiler error: unexpected expression âsizeof ("A")â of
kind sizeof_expr
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


works with 4.4 & 4.5, or without -std=c++0x


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