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

Qirun Zhang <helloqirun at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |helloqirun at gmail dot com

--- Comment #1 from Qirun Zhang <helloqirun at gmail dot com> ---
This regression also crashes the current trunk.

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/home/absozero/trunk/root-gcc/libexec/gcc/x86_64-pc-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/home/absozero/trunk/root-gcc
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 6.0.0 20160211 (experimental) [trunk revision 233345] (GCC) 



$ gcc-trunk pr65491_1.c 
pr65491_1.c: In function ‘sum’:
pr65491_1.c:7:1: error: mode precision of non-integral result does not match
field size of BIT_FIELD_REF
 sum (a first, a second)
 ^~~
BIT_FIELD_REF <first_1(D), 128, 0>
pr65491_1.c:9:16: note: in statement
   return first + second;
          ~~~~~~^~~~~~~~
_6 = BIT_FIELD_REF <first_1(D), 128, 0>;
pr65491_1.c:7:1: error: mode precision of non-integral result does not match
field size of BIT_FIELD_REF
 sum (a first, a second)
 ^~~
BIT_FIELD_REF <second_2(D), 128, 0>
pr65491_1.c:9:16: note: in statement
   return first + second;
          ~~~~~~^~~~~~~~
_7 = BIT_FIELD_REF <second_2(D), 128, 0>;
pr65491_1.c:7:1: internal compiler error: verify_gimple failed
 sum (a first, a second)
 ^~~
0xb9f6a6 verify_gimple_in_cfg(function*, bool)
        ../../gcc/gcc/tree-cfg.c:5125
0xa92c73 execute_function_todo
        ../../gcc/gcc/passes.c:1958
0xa9354b execute_todo
        ../../gcc/gcc/passes.c:2010
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.

Reply via email to