This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r190951 - in /trunk/gcc: ChangeLog vec.h
- From: dnovillo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 04 Sep 2012 21:07:49 -0000
- Subject: r190951 - in /trunk/gcc: ChangeLog vec.h
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