[Bug c++/22147] [4.1 regression] ICE in get_bindings

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Sep 9 08:21:00 GMT 2005


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-09-09 08:21 -------
I have two patches, one that produces (for the testcase in comment #1)

/suse/rguenther/src/tests/pr22147-2.C: In instantiation of ‘A<int>’:
/suse/rguenther/src/tests/pr22147-2.C:3:   instantiated from ‘void foo(A<T>*)
[with T = int]Â’
/suse/rguenther/src/tests/pr22147-2.C:12:   instantiated from here
/suse/rguenther/src/tests/pr22147-2.C:7: error: template-id ‘foo<X>’ for ‘void
foo(A<X>*)Â’ does not match any template declaration

and another one that doesn't complain and accepts the code as valid.

So - is this valid code?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22147



More information about the Gcc-bugs mailing list