[Bug c++/53786] [C++11] alias template causes g++ segfault

2012-12-19 Thread mustrumr97 at gmail dot com

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

--- Comment #4 from Hristo Venev mustrumr97 at gmail dot com 2012-12-19 
13:51:08 UTC ---
That bug was fixed. However there is still another one:

templateclass... Data
struct List{};
templateclass T, class... Ts
using Tail=ListTs...;
templateclass... Ts
using Tail2=TailTs...;
using A=Tail2int, char, char;

fail.cpp: In substitution of ‘templateclass T, class ... Ts using Tail =
ListTs ... [with T = int; Ts = char]’:
fail.cpp:6:24:   required by substitution of ‘templateclass ... Ts using
Tail2 = TailTs ... [with Ts = {int, char, char}]’
fail.cpp:7:30:   required from here
fail.cpp:4:23: error: template argument 1 is invalid
 using Tail=ListTs...;
   ^
In the diagnostic it is said that in the instantiation of Tailint, char, char
Ts is char, it should be {char, char} - a list of types, not a single type.

Additionally when `using A=Tail2;` (which is invalid) the compiler still
crashes.


[Bug c++/53786] [C++11] alias template causes g++ segfault

2012-07-25 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53786

Paolo Carlini paolo.carlini at oracle dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2012-07-25
 Ever Confirmed|0   |1

--- Comment #3 from Paolo Carlini paolo.carlini at oracle dot com 2012-07-25 
09:45:23 UTC ---
Confirmed.


[Bug c++/53786] [C++11] alias template causes g++ segfault

2012-06-30 Thread mustrumr97 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53786

--- Comment #2 from Hristo Venev mustrumr97 at gmail dot com 2012-06-30 
15:19:29 UTC ---
Reduced:

templateclass... x
class list{};
templateclass a, class... b
using tail=listb...;
templateclass... x
using tail2=tailx...;


[Bug c++/53786] [C++11] alias template causes g++ segfault

2012-06-27 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53786

Daniel Krügler daniel.kruegler at googlemail dot com changed:

   What|Removed |Added

 CC||daniel.kruegler at
   ||googlemail dot com

--- Comment #1 from Daniel Krügler daniel.kruegler at googlemail dot com 
2012-06-27 22:18:16 UTC ---
The problem still persists in gcc 4.8.0 20120624 (experimental):

5|internal compiler error: tree check: accessed elt 2 of tree_vec with 1 elts
in tsubst_pack_expansion, at cp/pt.c:9374