constexpr.c (inline_asm_in_constexpr_error): New.
authorMarek Polacek <polacek@redhat.com>
Thu, 8 Aug 2019 14:55:52 +0000 (14:55 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 8 Aug 2019 14:55:52 +0000 (14:55 +0000)
commit7c81497574411797ac55b9abfab1275bf3241078
treee5e389ec951d66518978ff3b9fb8a093647175ac
parentcb0de9b60cdc362915e06dfe8a373205d93b232d
constexpr.c (inline_asm_in_constexpr_error): New.

* constexpr.c (inline_asm_in_constexpr_error): New.
(cxx_eval_constant_expression) <case ASM_EXPR>: Call it.
(potential_constant_expression_1) <case ASM_EXPR>: Likewise.

* g++.dg/cpp2a/inline-asm3.C: New test.

From-SVN: r274210
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/inline-asm3.C [new file with mode: 0644]