https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63455
Bug ID: 63455
Summary: decltype of statement expression internal compiler
error: in cp_parser_abort_tentative_parse, at
cp/parser.c:25062
Product: gcc
Version: 4.9.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: b.r.longbons at gmail dot com
good: Debian 4.6.4-7
bad: Debian 4.7.4-3
bad: Debian 4.8.3-11
bad: Debian 4.9.1-15
int main()
{
int x = 0;
// without '+0', gcc 4.6 gives a different error (no ICE though)
decltype(({ int y = x; y; })+0) v1 = 0;
}