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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-08 
14:13:31 UTC ---
Calling this a regression is interesting.  GCC 4.3 rejects the code:

> /space/rguenther/install/gcc-4.3.5/bin/g++ -S t.ii -std=c++0x
../src/simple-tests/bug-gcc-ICE-return_type_depends_on_variadic_size.cpp:7:
error: expected initializer before '->' token
../src/simple-tests/bug-gcc-ICE-return_type_depends_on_variadic_size.cpp: In
function 'int main()':
../src/simple-tests/bug-gcc-ICE-return_type_depends_on_variadic_size.cpp:12:
error: 'f' was not declared in this scope

it remains to be stated whether the code is valid or not, ICEing instead
of rejecting it is a regression.

Reply via email to