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

             Bug #: 53491
           Summary: internal compiler error: in
                    build_target_expr_with_type, at cp/tree.c:587
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: k.linga...@samsung.com


While doing something stupid (always the case, ain't it?) the compiler barfed
on me:

#include <queue>
#include <iostream>

using namespace std;

int main()
{
    typedef std::priority_queue<uint64_t, std::deque<uint64_t> > EventQueue;
    EventQueue m;

    uint64_t result = 0;
    result += m.pop();

    return 0;
}


Yeah, I know, you can't += on a function returning 'void', but, since the
compiler croaked, I thought I'd submit a minor bug on it.  


% g++  -O3 -W -Wall -std=c++11 -Wall -Wextra -Winline -Werror -Winit-self
-Wno-sequence-point -Wno-inline gcc_bug.cpp
gcc_bug.cpp: In function ‘int main()’:
gcc_bug.cpp:13:21: internal compiler error: in build_target_expr_with_type, at
cp/tree.c:587
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


% g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/sarc/spa/tools/gcc-470/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.7.0/configure --prefix=/sarc/spa/tools/gcc-470/
--with-mpc=/sarc/spa/tools/gcc-470/ --with-mpfr=/sarc/spa/tools/gcc-470/
--with-gmp=/sarc/spa/tools/gcc-470/ : (reconfigured) ../gcc-4.7.0/configure
--prefix=/sarc/spa/tools/gcc-470/ --with-mpc=/sarc/spa/tools/gcc-470/
--with-mpfr=/sarc/spa/tools/gcc-470/ --with-gmp=/sarc/spa/tools/gcc-470/ :
(reconfigured) ../gcc-4.7.0/configure --enable-languates=c,c++
--prefix=/sarc/spa/tools/gcc-470/ --with-mpc=/sarc/spa/tools/gcc-470/
--with-mpfr=/sarc/spa/tools/gcc-470/ --with-gmp=/sarc/spa/tools/gcc-470/ :
(reconfigured) ../gcc-4.7.0/configure --enable-languages=c,c++
--prefix=/sarc/spa/tools/gcc-470/ --with-mpc=/sarc/spa/tools/gcc-470/
--with-mpfr=/sarc/spa/tools/gcc-470/ --with-gmp=/sarc/spa/tools/gcc-470/
Thread model: posix
gcc version 4.7.0 (GCC)

Reply via email to