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

--- Comment #2 from Diego Novillo <dnovillo at gcc dot gnu.org> 2012-09-04 
21:07:56 UTC ---
Author: dnovillo
Date: Tue Sep  4 21:07:48 2012
New Revision: 190951

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190951
Log:
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."

    PR bootstrap/54484
    * vec.h (vec_t::embedded_init): Move default argument value
    to function declaration.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/vec.h

Reply via email to