[Bug c++/39055] [4.2/4.3/4.4 regression] ICE with questionable default parameter of a member function
jason at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Mar 22 14:02:00 GMT 2009
------- Comment #4 from jason at gcc dot gnu dot org 2009-03-22 14:01 -------
I was wrong; the previous paragraph says "Local variables shall not be used in
default argument expressions."
3.3 was right to reject the testcase; delayed instantiation of default
arguments only applies to function templates and member functions of class
templates, not local declarations. Furthermore, a template for which no valid
instantiation can be generated is ill-formed, though the implementation is not
required to give a diagnostic.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |ice-on-invalid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39055
More information about the Gcc-bugs
mailing list