Re: [PATCH] c++: Fix up ICEs on constexpr inline asm strings in templates [PR118277]

2025-01-07 Thread Andi Kleen
On Tue, Jan 07, 2025 at 08:36:29PM +0100, Jakub Jelinek wrote: > Hi! > > The following patch fixes ICEs when the new inline asm syntax > to use C++26 static_assert-like constant expressions in place > of string literals is used in templates. > As finish_asm_stmt doesn't do any checking for > proce

[PATCH] c++: Fix up ICEs on constexpr inline asm strings in templates [PR118277]

2025-01-07 Thread Jakub Jelinek
Hi! The following patch fixes ICEs when the new inline asm syntax to use C++26 static_assert-like constant expressions in place of string literals is used in templates. As finish_asm_stmt doesn't do any checking for processing_template_decl, this patch also just defers handling those strings in te