public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51854] New: ICE in mangle.c with literal of complex floating type
@ 2012-01-13 22:25 hstong at ca dot ibm.com
  2012-01-13 22:30 ` [Bug c++/51854] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: hstong at ca dot ibm.com @ 2012-01-13 22:25 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51854
           Summary: ICE in mangle.c with literal of complex floating type
    Classification: Unclassified
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hstong@ca.ibm.com
              Host: powerpc64-unknown-linux-gnu
            Target: powerpc64-unknown-linux-gnu


ICE with imaginary component in mangled expression.

## Small self-contained source (cmplxfMangle.cpp):
template <unsigned N> struct A;

template <typename U, typename V>
char foo(U, V);

template <typename U>
void bar(A<sizeof(foo(U(), 1.0fj))> *);

int main() {
   bar<int>(0);
}


## Compiler invocation:
g++-4.6.0 cmplxfMangle.cpp -c


## Compiler output:
cmplxfMangle.cpp: In instantiation of âvoid bar(A<sizeof (char foo(U(),
(__complex__ float){0.0f, 1.0e+0f}))>*) [with U = int]â:
cmplxfMangle.cpp:10:15:   instantiated from here
cmplxfMangle.cpp:7:6: internal compiler error: in write_template_arg_literal,
at cp/mangle.c:2772
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


## g++ -v output:
Using built-in specs.
COLLECT_GCC=g++-4.6.0
COLLECT_LTO_WRAPPER=/data/gcc/libexec/gcc/powerpc64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: powerpc64-unknown-linux-gnu
Configured with: ./configure --prefix=/data/gcc --program-suffix=-4.6.0
--disable-libssp --disable-libgcj --enable-version-specific-runtime-libs
--with-cpu=default32 --enable-secureplt --with-long-double-128 --enable-shared
--enable-__cxa_atexit --enable-threads=posix --enable-languages=c,c++,fortran
--with-gmp=/usr/local
Thread model: posix
gcc version 4.6.0 (GCC)


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-01-16 21:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-13 22:25 [Bug c++/51854] New: ICE in mangle.c with literal of complex floating type hstong at ca dot ibm.com
2012-01-13 22:30 ` [Bug c++/51854] " pinskia at gcc dot gnu.org
2012-01-16 10:54 ` [Bug c++/51854] [4.4/4.5/4.6/4.7 Regression] " rguenth at gcc dot gnu.org
2012-01-16 18:42 ` jakub at gcc dot gnu.org
2012-01-16 21:08 ` jason at gcc dot gnu.org
2012-01-16 21:36 ` jason at gcc dot gnu.org
2012-01-16 21:56 ` [Bug c++/51854] [4.4/4.5/4.6 " jason at gcc dot gnu.org
2012-01-16 22:11 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).