Commit f47910b5 by Andrew Sutton Committed by Paolo Carlini

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
parent e4e01495
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'
......
......@@ -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:
......
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
......
// 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment