This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13907] [3.3/3.4/3.5 regression] valid conversion rejected unless -pedantic is set


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]