------- Comment #2 from igodard at pacbell dot net  2006-09-10 21:18 -------
On further checking, you can have a templated constructor and invoke it - so
long as it is fully resolved by the data arguments. You only get the diagnostic
when the desired template has to be explicitly qualified. The compiler knows
that qualification will be required because none of the function arguments
depend on the template argument, so the template argument would have to be
supplied explicitly and the declaration could be flagged at once (if this is in
fact illegal)

I think that the qualified invocation I reported is unambiguous, and certainly
works for plain functions. But it's peculiar enough that both you and icc might
have made the same mistake. Does the standard explicitly disallow this? If not
then it should be accepted.


-- 


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

Reply via email to