re PR c++/67504 (ICE with type dependent collapse argument)
authorJakub Jelinek <jakub@redhat.com>
Wed, 9 Sep 2015 07:25:53 +0000 (09:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 9 Sep 2015 07:25:53 +0000 (09:25 +0200)
commit6cbf37c3d58bd0dbd5f79c6b2e24b35764e6fb0a
treeb8272989ec291c3130dc392e6d2ff3d1fce155f4
parent0bb99c1162085f10cb1706f61774e72b654e5279
re PR c++/67504 (ICE with type dependent collapse argument)

PR c++/67504
* parser.c (cp_parser_omp_clause_collapse): Test tree_fits_shwi_p
before INTEGRAL_TYPE_P test.

* g++.dg/gomp/pr67504.C: New test.

From-SVN: r227579
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr67504.C [new file with mode: 0644]