re PR c/51321 (__builtin_types_compatible_p (any_type_t[1][], any_other_type_t) crash...
authorAndrew Pinski <apinski@cavium.com>
Wed, 30 Nov 2011 19:55:36 +0000 (19:55 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 30 Nov 2011 19:55:36 +0000 (11:55 -0800)
commit9abfe98649d444d324f707d25071bcd8f31282e8
treee77352b3962f65cd032090753790f973b56f0f82
parent9790c19e52e65814d6c738fe0e31e25e93f3f4cb
re PR c/51321 (__builtin_types_compatible_p (any_type_t[1][], any_other_type_t) crashes GCC)

2011-11-30  Andrew Pinski  <apinski@cavium.com>

PR c/51321
* c-parser.c (c_parser_postfix_expression): Check groktypename results
before looking at the main variant.

2011-11-30  Andrew Pinski  <apinski@cavium.com>

* gcc.dg/pr51321.c: New testcase.

From-SVN: r181857
gcc/ChangeLog
gcc/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr51321.c [new file with mode: 0644]