[Bug c++/14912] Do not print default template arguments in error messages
dave at boost-consulting dot com
gcc-bugzilla@gcc.gnu.org
Wed Mar 23 04:55:00 GMT 2005
------- Additional Comments From dave at boost-consulting dot com 2005-03-23 04:55 -------
"should GCC try and remember which arguments were really specified in the
template-id (hard to do), or a simple check of equalness between the argument
and the default parameter would suffice?"
GCC should not try to remember the arguments. That path is a slippery slope,
and leads to things similar to "deep typedef substitution," which makes error
messages much harder to read than necessary.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14912
More information about the Gcc-bugs
mailing list