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++/34774] New: templates, enumerations, overflow, ice


While trying to pinpoint an *intermitent* warning/error with g++ 4.3
"mf/unit.h:84: error: no integral type can represent all of the enumerator
values for `metafloat::core::helpers::details::aligner<7u,
metafloat::core::float_t<0l, 0l, 0ul,  CAT_NRM> >::<anonymous enum>'" i finally
got it to ice with the attached version. Even better, the venerable g++ 3.4 as
shipped by Cygwin also craps out.


$ g++ tf.ii -o tf
In file included from metafloat.h:13,
                 from tf.cc:14:
mf/significand.h:37: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://cygwin.com/problems.html> for instructions.
$ /usr/local/gcc-4.3-20080104/bin/g++ tf.ii -o tf
In file included from metafloat.h:14,
                 from tf.cc:15:
mf/significand.h:35: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ g++ -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure
--verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
--libe
xecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls
--without-included-gettext --
enable-version-specific-runtime-libs --without-x --enable-libgcj
--disable-java-awt --with-system-zlib --enable-interpreter
--disable-libgcj-debug --enable-thre
ads=posix --enable-java-gc=boehm --disable-win32-registry
--enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
$ /usr/local/gcc-4.3-20080104/bin/g++ -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: ../configure --prefix=/usr/local/gcc-4.3-20080104
--enable-languages=c,c++ --enable-threads=posix --disable-checking
--disable-libmudflap --dis
able-nls --disable-shared --disable-win32-registry --disable-multilib
--enable-sjlj-exceptions --with-system-zlib --with-gnu-ld --with-gnu-as
--verbose --enable
-checking=none --disable-bootstrap
Thread model: posix
gcc version 4.3.0 20080104 (experimental) (GCC)


-- 
           Summary: templates, enumerations, overflow, ice
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbptbp at gmail dot com


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


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