This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/59361] cannot expand parenthesized pack expression
- From: "andrew.n.sutton at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 Apr 2014 14:49:05 +0000
- Subject: [Bug c++/59361] cannot expand parenthesized pack expression
- Auto-submitted: auto-generated
- References: <bug-59361-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59361
Andrew Sutton <andrew.n.sutton at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrew.n.sutton at gmail dot com
--- Comment #2 from Andrew Sutton <andrew.n.sutton at gmail dot com> ---
Created attachment 32522
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32522&action=edit
Proposed solution
The problem occurs in cp_parser_cast_expression. A term of having the form
(T())... cannot be parsed as a cast expression since the the expansion is only
applied to a part of the cast expression. If ... follows the closing paren, the
expression must be parsed as unary expression.