This is the mail archive of the gcc-patches@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]

Re: Fix bootstrap failure with clang++ (PR 54484)


On 2012-09-04 17:10 , Steven Bosscher wrote:
On Tue, Sep 4, 2012 at 11:07 PM, Diego Novillo <dnovillo@google.com> wrote:
Fix bootstrap failure with clang++.

This patch fixes a bootstrap failure when using clang as the host
compiler.  Default arguments for class template member functions
should be added in the declaration, not the definition.

From Jason:

8.3.6 says "Default arguments for a member function of a class template shall
be specified on the initial declaration of the member function within the
class template."

If GCC doesn't diagnose this, what is there to avoid this problem in the future?

I'm filing a separate PR for this.



Diego



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