re PR c++/59361 (cannot expand parenthesized pack expression)

/cp
2014-07-09  Andrew Sutton  <andrew.n.sutton@gmail.com>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/59361
	* parser.c (cp_parser_tokens_start_cast_expression): Return 0 for
	CPP_ELLIPSIS too.

/testsuite
2014-07-09  Andrew Sutton  <andrew.n.sutton@gmail.com>
	    Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/59361
	* g++.dg/cpp0x/vt-59361.C: New.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>

From-SVN: r212386
This commit is contained in:
Andrew Sutton 2014-07-09 08:32:43 +00:00 committed by Paolo Carlini
parent e4e01495cc
commit f47910b51e
4 changed files with 34 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2014-07-09 Andrew Sutton <andrew.n.sutton@gmail.com>
Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59361
* parser.c (cp_parser_tokens_start_cast_expression): Return 0 for
CPP_ELLIPSIS too.
2014-07-07 Paolo Carlini <paolo.carlini@oracle.com>
* class.c (check_for_override): Wrap the 'final' and 'override'

View file

@ -7666,6 +7666,7 @@ cp_parser_tokens_start_cast_expression (cp_parser *parser)
case CPP_OR:
case CPP_OR_OR:
case CPP_EOF:
case CPP_ELLIPSIS:
return 0;
case CPP_OPEN_PAREN:

View file

@ -1,3 +1,9 @@
2014-07-09 Andrew Sutton <andrew.n.sutton@gmail.com>
Paolo Carlini <paolo.carlini@oracle.com>
PR c++/59361
* g++.dg/cpp0x/vt-59361.C: New.
2014-07-08 Sriraman Tallam <tmsriram@google.com>
PR target/61599

View file

@ -0,0 +1,20 @@
// PR c++/59361
// { dg-do compile { target c++11 } }
template<bool ...Bs>
struct and_
{
constexpr static bool value{true};
};
template<typename T>
struct true_
{
constexpr operator bool() const { return true; }
};
template<typename ...Ts>
constexpr bool foo(Ts...)
{
return and_<(true_<Ts>())...>::value;
}