[Bug inline-asm/85172] internal compiler error: unexpected expression '<statement>' of kind asm_expr
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 22 21:06:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85172
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jun 22 21:05:52 2018
New Revision: 261947
URL: https://gcc.gnu.org/viewcvs?rev=261947&root=gcc&view=rev
Log:
Backported from mainline
2018-04-04 Jakub Jelinek <jakub@redhat.com>
PR inline-asm/85172
* constexpr.c (cxx_eval_builtin_function_call): For calls to
builtin_valid_in_constant_expr_p functions, don't call
cxx_eval_constant_expression if argument is not
potential_constant_expression.
* g++.dg/ext/builtin13.C: New test.
* g++.dg/ext/atomic-4.C: New test.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/ext/atomic-4.C
branches/gcc-7-branch/gcc/testsuite/g++.dg/ext/builtin13.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/constexpr.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list