This is the mail archive of the gcc-patches@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]

Re: [PATCH, 2/4] Replace error_at with assert in build_va_arg


On Aug 24 2016, Tom de Vries <Tom_deVries@mentor.com> wrote:

> Replace error_at with assert in build_va_arg
>
> 2016-08-22  Tom de Vries  <tom@codesourcery.com>
>
> 	* c-common.c (build_va_arg): Replace first argument type error
> 	with assert.

/daten/gcc/gcc-20160902/gcc/testsuite/c-c++-common/pr70651.c: In function 'void fn1()':
/daten/gcc/gcc-20160902/gcc/testsuite/c-c++-common/pr70651.c:8:31: internal compiler error: in build_va_arg, at c-family/c-common.c:5837
0x103a856b build_va_arg(unsigned int, tree_node*, tree_node*)
	../../gcc/c-family/c-common.c:5837
0x101c8eaf build_x_va_arg(unsigned int, tree_node*, tree_node*)
	../../gcc/cp/call.c:6986
0x1028cef3 cp_parser_primary_expression
	../../gcc/cp/parser.c:5096
0x1028f6cf cp_parser_postfix_expression
	../../gcc/cp/parser.c:6721
0x102981cb cp_parser_unary_expression
	../../gcc/cp/parser.c:8019
0x10298ad7 cp_parser_cast_expression
	../../gcc/cp/parser.c:8696
0x10299267 cp_parser_binary_expression
	../../gcc/cp/parser.c:8797
0x10299acf cp_parser_assignment_expression
	../../gcc/cp/parser.c:9084
0x1029c9d7 cp_parser_expression
	../../gcc/cp/parser.c:9253
0x1029d477 cp_parser_expression_statement
	../../gcc/cp/parser.c:10736
0x1028aeb3 cp_parser_statement
	../../gcc/cp/parser.c:10587
0x1028bdcf cp_parser_statement_seq_opt
	../../gcc/cp/parser.c:10859
0x1028bed7 cp_parser_compound_statement
	../../gcc/cp/parser.c:10813
0x102a9e4f cp_parser_function_body
	../../gcc/cp/parser.c:20832
0x102a9e4f cp_parser_ctor_initializer_opt_and_function_body
	../../gcc/cp/parser.c:20868
0x102aa8eb cp_parser_function_definition_after_declarator
	../../gcc/cp/parser.c:25565
0x102ab827 cp_parser_function_definition_from_specifiers_and_declarator
	../../gcc/cp/parser.c:25477
0x102ab827 cp_parser_init_declarator
	../../gcc/cp/parser.c:18603
0x102abaa3 cp_parser_simple_declaration
	../../gcc/cp/parser.c:12487
0x102abf23 cp_parser_block_declaration
	../../gcc/cp/parser.c:12363
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.
compiler exited with status 1
FAIL: c-c++-common/pr70651.c  -std=c++11 (internal compiler error)

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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