public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mustrumr97 at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53786] [C++11] alias template causes g++ segfault Date: Wed, 19 Dec 2012 13:51:00 -0000 [thread overview] Message-ID: <bug-53786-4-IOrdRJI75Q@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-53786-4@http.gcc.gnu.org/bugzilla/> 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: template<class... Data> struct List{}; template<class T, class... Ts> using Tail=List<Ts...>; template<class... Ts> using Tail2=Tail<Ts...>; using A=Tail2<int, char, char>; fail.cpp: In substitution of ‘template<class T, class ... Ts> using Tail = List<Ts ...> [with T = int; Ts = char]’: fail.cpp:6:24: required by substitution of ‘template<class ... Ts> using Tail2 = Tail<Ts ...> [with Ts = {int, char, char}]’ fail.cpp:7:30: required from here fail.cpp:4:23: error: template argument 1 is invalid using Tail=List<Ts...>; ^ In the diagnostic it is said that in the instantiation of Tail<int, 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.
next prev parent reply other threads:[~2012-12-19 13:51 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-06-27 14:20 [Bug c++/53786] New: " mustrumr97 at gmail dot com 2012-06-27 22:18 ` [Bug c++/53786] " daniel.kruegler at googlemail dot com 2012-06-30 15:19 ` mustrumr97 at gmail dot com 2012-07-25 9:45 ` paolo.carlini at oracle dot com 2012-12-19 13:51 ` mustrumr97 at gmail dot com [this message] 2013-04-04 16:55 ` [Bug c++/53786] [C++11] alias template - error on valid code jason at gcc dot gnu.org 2013-04-05 16:29 ` jason at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-53786-4-IOrdRJI75Q@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).