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]

Re: 2.95: nested constructors seem to cause unwarranted error in this situation.


>   C c( B(A(1)), B(A(2)) );

Thanks for your bug report. This is a known bug; g++ gets confused
whether this is could be a function declaration. To work around, say

   C c((B(A(1))), B(A(2)) );

Regards,
Martin

P.S. It looks like this should get on the known-bugs-list.


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