c++/7016: missing definitions for <?= and >?=
bangerth@dealii.org
bangerth@dealii.org
Thu Jan 23 03:24:00 GMT 2003
Synopsis: missing definitions for <?= and >?=
State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Thu Jan 23 03:11:18 2003
State-Changed-Why:
This is probably a corner case whether I should close the
report: this has never worked (used to ICE)
---------------------------------
class C {};
C operator <?= (C) { return C(); }
--------------------------------------
I don't think it was ever documented that one should be
able to overload this operator (a gcc extension anyway).
Now we at least get a reasonable error:
g/a> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc:2: error: expected identifier
x.cc:2: error: expected type-name
x.cc:2: error: expected `,' or `;'
So the fact that the new parser rejects the code is ok, and
is not removing a documented extension.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7016
More information about the Gcc-bugs
mailing list