------- Comment #1 from rguenth at gcc dot gnu dot org  2008-01-06 20:54 -------
2.95.4 says

t.C:9: `B::f(int)' conflicts with used function
t.C:2: `void A::f(int = 5)' previously declared here
t.C:9: default argument given for parameter 1 of `void B::f(int = 4)'
t.C:2: after previous specification in `void A::f(int = 5)'

fails since at least 3.3.6.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |accepts-invalid
      Known to fail|                            |3.3.6
      Known to work|                            |2.95.4
   Last reconfirmed|0000-00-00 00:00:00         |2008-01-06 20:54:23
               date|                            |
            Summary|Default argument checking   |[4.1/4.2/4.3 Regression]
                   |not performed after overload|Default argument checking
                   |resolution with C linkage   |not performed after overload
                   |                            |resolution with C linkage
   Target Milestone|---                         |4.2.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34691

Reply via email to