------- 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

Reply via email to