https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45501
Andrew Pinski changed:
What|Removed |Added
Keywords||rejects-valid
Status|NEW
--- Comment #4 from paolo dot carlini at oracle dot com 2010-09-03 09:09
---
Ah, ok, thanks Jason.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45501
--- Comment #3 from jason at gcc dot gnu dot org 2010-09-03 01:36 ---
prn and this->prn are equivalent. Specifically, the type of *this is the
current scope, so although it is a dependent type it is not a dependent scope
and .template should not be needed.
--
jason at gcc dot gnu do
--- Comment #2 from paolo dot carlini at oracle dot com 2010-09-02 17:44
---
As a matter of fact, basing on my rough understanding of '.template', GCC may
well be correct: my rule of thumb is that 'template' is required when the
construct before the period depends on a template paramete
--- Comment #1 from paolo dot carlini at oracle dot com 2010-09-02 17:16
---
Since PrintTextFrom is a template, you can (should) write:
this->prn.template PrintTextFrom< MetaObj >();
which works with both compilers. Since apparently ICC 11.1 likes in strict mode
also the form withou