]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR inline-asm/85172 (internal compiler error: unexpected expression...
authorJakub Jelinek <jakub@redhat.com>
Fri, 22 Jun 2018 21:05:52 +0000 (23:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 22 Jun 2018 21:05:52 +0000 (23:05 +0200)
commitde680082bef8bb3188b2dec625200833fa60a958
tree31a12e3306fc19141b040dccbf514824d1f18db9
parent47eddf9eed9cb40e22bfb3b45e8b7e1426ac5a7b
backport: re PR inline-asm/85172 (internal compiler error: unexpected expression '<statement>' of kind asm_expr)

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.

From-SVN: r261947
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/atomic-4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/builtin13.C [new file with mode: 0644]