------- Comment #5 from pinskia at gcc dot gnu dot org  2006-10-03 16:58 -------
Actually I take back comment #3.  This code is invalid as it violates 8.3.6/5:
"The names in the expressions are bound, and the semantics constraints are
checked, at the point where the default argument expression appears.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
            Summary|No error given for derived- |default argument access
                   |to-inaccessible-base        |checking is not done at the
                   |conversion in default arg.  |point where the default
                   |                            |argument expression are
                   |                            |appears


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

Reply via email to