[Bug c/38661] New: ICE: vector VEC(constructor_elt,base) push domain error, in build_constructors at tree-switch-conversion.c:450

cgd at google dot com gcc-bugzilla@gcc.gnu.org
Mon Dec 29 19:02:00 GMT 2008


compiler:

Using built-in specs.
Target: i686-linux
Configured with: ../trunk/configure --enable-languages=c,c++ --build=i686-linux
--host=i686-linux --target=i686-linux
--prefix=/g/users/cgd/proj/gcc-trunk/bld/../inst
Thread model: posix
gcc version 4.4.0 20081229 (experimental) (GCC) 

(built from trunk sources as of earlier this morning.)

input source x.c:

const char *func(int val) {
 switch (val) {
   case 2147483647: return "foo";
   default: return "";
 }
}

compilation command line: gcc -O2 -c x.c

result:

x.c: In function 'func':
x.c:6: internal compiler error: vector VEC(constructor_elt,base) push domain
error, in build_constructors at tree-switch-conversion.c:450
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

I verified that it compiles correctly with GCC 4.3.2.


-- 
           Summary: ICE: vector VEC(constructor_elt,base) push domain error,
                    in build_constructors at tree-switch-conversion.c:450
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cgd at google dot com
 GCC build triplet: i686-linux
  GCC host triplet: i686-linux
GCC target triplet: i686-linux


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



More information about the Gcc-bugs mailing list