This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13907] [3.3/3.4/3.5 regression] valid conversion rejected unless -pedantic is set
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jan 2004 18:50:38 -0000
- Subject: [Bug c++/13907] [3.3/3.4/3.5 regression] valid conversion rejected unless -pedantic is set
- References: <20040129001307.13907.japple@freeshell.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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