From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3514 invoked by alias); 13 Dec 2013 18:34:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 3441 invoked by uid 48); 13 Dec 2013 18:34:27 -0000 From: "ldionne.2 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59498] New: Pack expansion error in template alias Date: Fri, 13 Dec 2013 18:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ldionne.2 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-12/txt/msg01189.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59498 Bug ID: 59498 Summary: Pack expansion error in template alias Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ldionne.2 at gmail dot com GCC Version ----------- gcc-4.9 (GCC) 4.9.0 20131201 (experimental) Installed with Homebrew. System ------ OS X 10.8.5 Command line to trigger the bug ------------------------------- gcc-4.9 -std=c++11 -Wall -Wextra -pedantic -o /dev/null -c template_alias_bug.cpp Minimal code to reproduce ------------------------- template using alias = T; template using variadic_alias = alias; using Fail = variadic_alias; int main() { } Error message ------------- template_alias_bug.cpp:9:34: error: pack expansion argument for non-pack parameter 'T' of alias template 'template using alias = T' using variadic_alias = alias; ^ template_alias_bug.cpp:5:11: note: declared here template ^ template_alias_bug.cpp:11:14: error: expected type-specifier before 'variadic_alias' using Fail = variadic_alias; ^ Possibly related ---------------- Bug 58856 Comments -------- Clang compiles the code just fine and I don't see any obvious reason why that would be invalid C++11 (I could be mistaken), so I think that's a GCC bug.