Summary: | NSDMI parse fails for template'd intializer | ||
---|---|---|---|
Product: | gcc | Reporter: | miles |
Component: | c++ | Assignee: | Jason Merrill <jason> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | daniel.kruegler, pinskia |
Priority: | P3 | ||
Version: | 4.7.0 | ||
Target Milestone: | 4.7.0 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2012-01-02 00:00:00 |
Description
miles
2011-12-23 14:15:32 UTC
I bet a beer this is related to PR 57 (one of the most duplicated bugs in bugzilla). In fact the same work around fixes this testcase. Jason can you comment if DR 325 applies to NSDMI and not just default arguments? Ah yes, the latest note on DR 325 confirms the same issue exists with NSDMIs http://open-std.org/JTC1/SC22/WG21/docs/cwg_active.html#325 Author: jason Date: Mon Jan 2 17:53:16 2012 New Revision: 182809 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182809 Log: DR 325 PR c++/51666 * parser.c (cp_parser_cache_defarg): Split out... (cp_parser_parameter_declaration): ...from here. (cp_parser_save_nsdmi): Use it. (cp_parser_cache_group): Remove CPP_COMMA support. Added: trunk/gcc/testsuite/g++.dg/cpp0x/nsdmi-defer5.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog I suppose this can be closed as fixed. |