]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: ICE with unexpanded pack in asm
authoryxj-github-437 <2457369732@qq.com>
Wed, 4 Jun 2025 13:18:45 +0000 (21:18 +0800)
committerJason Merrill <jason@redhat.com>
Mon, 16 Jun 2025 10:41:08 +0000 (06:41 -0400)
commit138d0a20f8d81670bb616d440fc8990833e70aab
treeef5f6843aa2c0b1640786c617b4f5780aed6a239
parent6eb0dc067dad1fe745e83d4e113c1b2ea0ffed8c
c++: ICE with unexpanded pack in asm

Here an unexpanded parameter pack pass into asm_operand which doesn't
expect to see an operand without type. So use check_for_bare_parameter_packs
to remedy that.

gcc/cp/ChangeLog:

* parser.cc (cp_parser_asm_operand_list): Check for unexpanded
parameter packs.

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/variadic-crash7.C: New test.
gcc/cp/parser.cc
gcc/testsuite/g++.dg/cpp0x/variadic-crash7.C [new file with mode: 0644]