re PR inline-asm/85172 (internal compiler error: unexpected expression '<statement...
commit2ff7172ad6faa734cf7d55a06bffe6a0438626f0
authorJakub Jelinek <jakub@redhat.com>
Wed, 4 Apr 2018 19:55:56 +0000 (4 21:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 4 Apr 2018 19:55:56 +0000 (4 21:55 +0200)
treeef0944e597f17c044b6d2f0805d36c25dc9412bb
parent628a15343e494e457c647347e879c69a62016e0c
re PR inline-asm/85172 (internal compiler error: unexpected expression '<statement>' of kind asm_expr)

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: r259104
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]