[Bug c++/82112] New: internal compiler error: in fold_convert_loc, at fold-const.c:2262
noloader at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Sep 6 04:05:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82112
Bug ID: 82112
Summary: internal compiler error: in fold_convert_loc, at
fold-const.c:2262
Product: gcc
Version: 7.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: noloader at gmail dot com
Target Milestone: ---
I'm working on GCC112 (gcc112.fsffrance.org on the compile farm).
$ cat test.cxx
#include <altivec.h>
typedef unsigned char byte;
typedef vector unsigned char uint8x16_p8;
typedef vector unsigned long long uint64x2_p8;
#define ALIGN_DATA(n) __attribute__((aligned(n)))
int main(int argc, char* argv[])
{
ALIGN_DATA(16) const byte c[16] = {
0,1,2,3, 4,5,6,7, 8,9,10,11, 12,13,14,15
};
const uint64x2_p8 mask = vec_ld(0, c);
return 0;
}
==========
$ /opt/cfarm/gcc-latest/bin/g++ -c test.cxx
test.cxx: In function 'int main(int, char**)':
test.cxx:13:39: internal compiler error: in fold_convert_loc, at
fold-const.c:2262
const uint64x2_p8 mask = vec_ld(0, c);
^
0x1057fb4b fold_convert_loc(unsigned int, tree_node*, tree_node*)
../../gcc-7.1.0-src/gcc/fold-const.c:2261
0x103b3363 altivec_resolve_overloaded_builtin(unsigned int, tree_node*, void*)
../../gcc-7.1.0-src/gcc/config/rs6000/rs6000-c.c:6223
0x103632bb resolve_overloaded_builtin(unsigned int, tree_node*, vec<tree_node*,
va_gc, vl_embed>*)
../../gcc-7.1.0-src/gcc/c-family/c-common.c:7192
0x102a7713 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**,
bool, bool, int)
../../gcc-7.1.0-src/gcc/cp/semantics.c:2406
0x102399b7 cp_parser_postfix_expression
../../gcc-7.1.0-src/gcc/cp/parser.c:6992
0x1023a57f cp_parser_unary_expression
../../gcc-7.1.0-src/gcc/cp/parser.c:8103
0x1023b883 cp_parser_cast_expression
../../gcc-7.1.0-src/gcc/cp/parser.c:8781
0x1023c207 cp_parser_binary_expression
../../gcc-7.1.0-src/gcc/cp/parser.c:8882
0x1023cac7 cp_parser_assignment_expression
../../gcc-7.1.0-src/gcc/cp/parser.c:9169
0x1023d05b cp_parser_constant_expression
../../gcc-7.1.0-src/gcc/cp/parser.c:9439
0x1023e153 cp_parser_initializer_clause
../../gcc-7.1.0-src/gcc/cp/parser.c:21575
0x1023f5eb cp_parser_initializer
../../gcc-7.1.0-src/gcc/cp/parser.c:21515
0x10256ccf cp_parser_init_declarator
../../gcc-7.1.0-src/gcc/cp/parser.c:19332
0x102574cb cp_parser_simple_declaration
../../gcc-7.1.0-src/gcc/cp/parser.c:12777
0x10258393 cp_parser_block_declaration
../../gcc-7.1.0-src/gcc/cp/parser.c:12602
0x10258eff cp_parser_declaration_statement
../../gcc-7.1.0-src/gcc/cp/parser.c:12212
0x1022d5df cp_parser_statement
../../gcc-7.1.0-src/gcc/cp/parser.c:10699
0x1022e74b cp_parser_statement_seq_opt
../../gcc-7.1.0-src/gcc/cp/parser.c:11031
0x1022e857 cp_parser_compound_statement
../../gcc-7.1.0-src/gcc/cp/parser.c:10985
0x10245643 cp_parser_function_body
../../gcc-7.1.0-src/gcc/cp/parser.c:21432
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
==========
$ /opt/cfarm/gcc-latest/bin/g++ --version
g++ (GCC) 7.1.0
Copyright (C) 2017 Free Software Foundation, Inc.
More information about the Gcc-bugs
mailing list