------- Comment #1 from rguenth at gcc dot gnu dot org 2008-02-04 13:40 ------- Without checking you get:
t.C: In instantiation of 'B<int&>': t.C:9: instantiated from here t.C:6: error: 'B<int&>::t' is not a valid template argument for type 'int&' because object '#'indirect_ref' not supported by dump_decl#<declaration error>' has not external linkage -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |diagnostic, ice-checking Known to fail| |4.0.0 Priority|P3 |P4 Last reconfirmed|0000-00-00 00:00:00 |2008-02-04 13:40:05 date| | Summary|[4.3 regression] ICE with |[4.1/4.2/4.3 regression] ICE |references in templates |with references in templates http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35075