https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86458
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Status|UNCONFIRMED |NEW CC| |jason at gcc dot gnu.org Component|lto |c++ Target Milestone|--- |8.2 Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. The C++ FE doesn't subsitute template parameters in DECL_ARGUMENTs anon PARM_DECL for T<4>, specifically in the attribute list. <function_decl 0x7ffff69e2900 f ... arguments <parm_decl 0x7ffff68b6200 D.2294 type <integer_type 0x7ffff69e0c78 T SI size <integer_cst 0x7ffff68ae0c0 constant 32> unit-size <integer_cst 0x7ffff68ae0d8 constant 4> align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7ffff68ab5e8 attributes <tree_list 0x7ffff69df578 tree_0 purpose <identifier_node 0x7ffff69f2f80 vector_size normal local bindings <(nil)>> value <tree_list 0x7ffff69df618 value <mult_expr 0x7ffff69df5f0 type <integer_type 0x7ffff68ab7e0 long unsigned int> arg:0 <sizeof_expr 0x7ffff69f3260 type <integer_type 0x7ffff68ab7e0 long unsigned int> readonly arg:0 <integer_type 0x7ffff68ab5e8 int> t.ii:2:43 start: t.ii:2:43 finish: t.ii:2:53> arg:1 <template_parm_index 0x7ffff688b990 type <integer_type 0x7ffff68ab5e8 int> Jason?