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++/63935] New: internal compiler error: output_operand: invalid expression as operand


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

            Bug ID: 63935
           Summary: internal compiler error: output_operand: invalid
                    expression as operand
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kdupont at live dot be

Created attachment 34024
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34024&action=edit
tst.cpp source code that shows the issue

g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/u-blox/gallery/oss/gcc/lin_64/4.9.1/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.9.1/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.9.1/configure
--prefix=/u-blox/gallery/oss/gcc/re5_64/4.9.1
--with-local-prefix=/u-blox/gallery/oss/gcc/re5_64/4.9.1 --with-gnu-as
--with-as=/u-blox/gallery/oss/gcc/re5_64/4.9.1/bin/as --with-gnu-ld
--with-ld=/u-blox/gallery/oss/gcc/re5_64/4.9.1/bin/ld --enable-cpp
--enable-languages=c++ --disable-nls --enable-multilib
--host=x86_64-unknown-linux-gnu --with-gmp=/u-blox/gallery/oss/gcc/re5_64/4.9.1
--with-mpfr=/u-blox/gallery/oss/gcc/re5_64/4.9.1
Thread model: posix
gcc version 4.9.1 (GCC) 


 g++ -std=c++11 tst.cpp
tst.cpp:20:1: internal compiler error: output_operand: invalid expression as
operand
 }
 ^
0x77e49c output_operand_lossage(char const*, ...)
        ../../gcc-4.9.1/gcc/final.c:3368
0x77ebd5 output_addr_const(_IO_FILE*, rtx_def*)
        ../../gcc-4.9.1/gcc/final.c:3962
0xb1cdde assemble_integer_with_op(char const*, rtx_def*)
        ../../gcc-4.9.1/gcc/varasm.c:2593
0xb1ce35 default_assemble_integer(rtx_def*, unsigned int, int)
        ../../gcc-4.9.1/gcc/varasm.c:2609
0xb1cebd assemble_integer(rtx_def*, unsigned int, unsigned int, int)
        ../../gcc-4.9.1/gcc/varasm.c:2625
0xb21070 output_constant
        ../../gcc-4.9.1/gcc/varasm.c:4706
0xb253d2 output_constant
        ../../gcc-4.9.1/gcc/varasm.c:4611
0xb253d2 output_constructor_regular_field
        ../../gcc-4.9.1/gcc/varasm.c:4952
0xb253d2 output_constructor
        ../../gcc-4.9.1/gcc/varasm.c:5231
0xb24aee assemble_variable(tree_node*, int, int, int)
        ../../gcc-4.9.1/gcc/varasm.c:2139
0xb26725 varpool_assemble_decl(varpool_node*)
        ../../gcc-4.9.1/gcc/varpool.c:466
0x6de84d output_in_order
        ../../gcc-4.9.1/gcc/cgraphunit.c:2011
0x6de84d compile()
        ../../gcc-4.9.1/gcc/cgraphunit.c:2248
0x6deb14 finalize_compilation_unit()
        ../../gcc-4.9.1/gcc/cgraphunit.c:2330
0x59452b cp_write_global_declarations()
        ../../gcc-4.9.1/gcc/cp/decl2.c:4611
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

when the -std=c++11 option is omitted the code compiles ....


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