[Bug c++/69952] New: ICE with a long double vector

gaoyunzhong at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Feb 25 02:26:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69952

            Bug ID: 69952
           Summary: ICE with a long double vector
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gaoyunzhong at gmail dot com
  Target Milestone: ---

Given the following test program:

//----- test.cc
typedef float float4 __attribute__((__vector_size__(16)));
typedef long double float8 __attribute__((__vector_size__(32)));

void foo (float4 f4) { }
void bar(float8 f8) { }
//----- end test.cc

GCC 4.8.2 on my Ubuntu crashes with the following message
$ g++ --version
g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
$ g++ -S -mavx -O -o - mangle.cc
internal compiler error: in type_natural_mode, at config/i386/i386.c:5862
 void bar(float8 f8) { }
      ^


More information about the Gcc-bugs mailing list