[Bug c++/59361] cannot expand parenthesized pack expression

andrew.n.sutton at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 2 14:49:00 GMT 2014


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.



More information about the Gcc-bugs mailing list