]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/58874 ([c++11] ICE with OpenMP reduction declaration and -std=c++11)
authorJakub Jelinek <jakub@redhat.com>
Tue, 26 Nov 2013 20:39:56 +0000 (21:39 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 26 Nov 2013 20:39:56 +0000 (21:39 +0100)
commit5999f07fba49a339bed42319b2a304f521872931
treef66233b5a66a2b002c09d2bb559c1438540f790c
parent4ceffa27eea18baea5660ef3e29186eae7fa247a
re PR c++/58874 ([c++11] ICE with OpenMP reduction declaration and -std=c++11)

PR c++/58874
* parser.c (cp_parser_late_parsing_for_member): For OpenMP UDRs
pass 2 instead of 0 to finish_function.

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

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