Message ID | CAEwic4aJjQcCLb0FuNBVHNR6cfE5kE8L_8nFwbSQcook-Lehng@mail.gmail.com |
---|---|
State | New |
Headers | show |
OK. Jason
On Thu, Feb 20, 2014 at 10:27:18AM -0500, Jason Merrill wrote:
> OK.
Please include the testcase from the PR into the testsuite though.
Jakub
Index: parser.c =================================================================== --- parser.c (Revision 207953) +++ parser.c (Arbeitskopie) @@ -23165,6 +23165,9 @@ cp_parser_functional_cast (cp_parser* parser, tree tree cast; bool nonconst_p; + if (!type) + type = error_mark_node; + if (cp_lexer_next_token_is (parser->lexer, CPP_OPEN_BRACE)) { maybe_warn_cpp0x (CPP0X_INITIALIZER_LISTS);