[Bug c++/36203] explicit member function template lookup fails from templated function
starlight at binnacle dot cx
gcc-bugzilla@gcc.gnu.org
Sat May 10 23:42:00 GMT 2008
------- Comment #2 from starlight at binnacle dot cx 2008-05-10 23:41 -------
This was more of a "learning" experience than a "forgetting and
remembering" one. Thank you for the help.
Several template behaviors required by a strict ISO standard
reading are miles distant from intuition. This surely
qualifies, especially as three major vendor compilers accept it
without the keyword. An improved error message from GCC would
help immensely. Spent several hours googling this and coming up
dry (including a review of closed GCC bug reports) before
reporting it. Can't afford to read ISO 14882 from start to
finish every time this happens.
Another example is the despicable exclusion of base template
member names from the default scope. Regardless of any
"correctness," it's an nightmare to constantly insert 'this->'
and/or 'using' constructs to overcome the behavior that 99.999%
of the time serves no useful purpose. A command switch separate
from -fpermissive should exist for relaxing this one insanely
annoying rule. At least the error message here finally
provides a meaningful indication regarding the cause of the
problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36203
More information about the Gcc-bugs
mailing list