Compiling the following program with g++ -std=c++0x results in an ICE:

#include <vector>

int main()
{
   return (std::vector<int>{}.size());
}


-- 
           Summary: ICE on empty initializer lists
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tneumann at users dot sourceforge dot net


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

Reply via email to