[Bug c++/13907] [3.3/3.4/3.5 regression] valid conversion rejected unless -pedantic is set
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Thu Jan 29 18:50:00 GMT 2004
------- Additional Comments From bangerth at dealii dot org 2004-01-29 18:50 -------
This is clearly a bug -- x is const, so only the conversion operator
to "const int&" can be called. We should accept this with or without
-pedantic.
Confirmed with 3.3, 3.4 and mainline. It works with 2.95 and 3.2, though,
so this is a regression.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Known to fail| |3.3.3 3.4.0
Known to work| |2.95.3 3.2.3
Last reconfirmed|0000-00-00 00:00:00 |2004-01-29 18:50:36
date| |
Summary|pedantic needed to |[3.3/3.4/3.5 regression]
|disambiguate |valid conversion rejected
| |unless -pedantic is set
Target Milestone|--- |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13907
More information about the Gcc-bugs
mailing list