public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/58703] New: [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause @ 2013-10-12 21:16 reichelt at gcc dot gnu.org 2013-10-12 21:16 ` [Bug c++/58703] " reichelt at gcc dot gnu.org ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: reichelt at gcc dot gnu.org @ 2013-10-12 21:16 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58703 Bug ID: 58703 Summary: [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org The following invalid code snippet (compiled with "-fopenmp") triggers an ICE on trunk: ==================================================================== #pragma omp declare reduction (+ : char[] : omp_out += omp_in) #pragma omp declare reduction (+ : char() : omp_out += omp_in) ==================================================================== bug.cc:1:36: error: function or array type 'char []' in '#pragma omp declare reduction' #pragma omp declare reduction (+ : char[] : omp_out += omp_in) ^ bug.cc:2:36: error: function or array type 'char()' in '#pragma omp declare reduction' #pragma omp declare reduction (+ : char() : omp_out += omp_in) ^ bug.cc:2:63: internal compiler error: in cp_parser_translation_unit, at cp/parser.c:4019 #pragma omp declare reduction (+ : char() : omp_out += omp_in) ^ 0x66b3b0 cp_parser_translation_unit ../../gcc/gcc/cp/parser.c:4018 0x66b3b0 c_parse_file() ../../gcc/gcc/cp/parser.c:30962 0x787f73 c_common_parse_file() ../../gcc/gcc/c-family/c-opts.c:1046 Please submit a full bug report, [etc.] ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58703] [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause 2013-10-12 21:16 [Bug c++/58703] New: [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause reichelt at gcc dot gnu.org @ 2013-10-12 21:16 ` reichelt at gcc dot gnu.org 2013-10-14 9:02 ` rguenth at gcc dot gnu.org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: reichelt at gcc dot gnu.org @ 2013-10-12 21:16 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58703 Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |error-recovery, | |ice-on-invalid-code Target Milestone|--- |4.9.0 Known to fail| |4.9.0 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58703] [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause 2013-10-12 21:16 [Bug c++/58703] New: [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause reichelt at gcc dot gnu.org 2013-10-12 21:16 ` [Bug c++/58703] " reichelt at gcc dot gnu.org @ 2013-10-14 9:02 ` rguenth at gcc dot gnu.org 2014-02-03 11:04 ` paolo.carlini at oracle dot com ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: rguenth at gcc dot gnu.org @ 2013-10-14 9:02 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58703 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P5 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58703] [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause 2013-10-12 21:16 [Bug c++/58703] New: [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause reichelt at gcc dot gnu.org 2013-10-12 21:16 ` [Bug c++/58703] " reichelt at gcc dot gnu.org 2013-10-14 9:02 ` rguenth at gcc dot gnu.org @ 2014-02-03 11:04 ` paolo.carlini at oracle dot com 2014-02-03 13:06 ` jakub at gcc dot gnu.org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: paolo.carlini at oracle dot com @ 2014-02-03 11:04 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58703 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-02-03 Ever confirmed|0 |1 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58703] [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause 2013-10-12 21:16 [Bug c++/58703] New: [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause reichelt at gcc dot gnu.org ` (2 preceding siblings ...) 2014-02-03 11:04 ` paolo.carlini at oracle dot com @ 2014-02-03 13:06 ` jakub at gcc dot gnu.org 2014-02-05 15:32 ` jakub at gcc dot gnu.org 2014-02-05 16:14 ` jakub at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: jakub at gcc dot gnu.org @ 2014-02-03 13:06 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58703 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 32028 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32028&action=edit gcc49-pr58703.patch Untested fix. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58703] [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause 2013-10-12 21:16 [Bug c++/58703] New: [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause reichelt at gcc dot gnu.org ` (3 preceding siblings ...) 2014-02-03 13:06 ` jakub at gcc dot gnu.org @ 2014-02-05 15:32 ` jakub at gcc dot gnu.org 2014-02-05 16:14 ` jakub at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: jakub at gcc dot gnu.org @ 2014-02-05 15:32 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58703 --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Feb 5 15:32:01 2014 New Revision: 207511 URL: http://gcc.gnu.org/viewcvs?rev=207511&root=gcc&view=rev Log: PR c++/58703 * parser.c (cp_parser_omp_declare_reduction): Save and free declarator_obstack. * c-c++-common/gomp/pr58703.c: New test. Added: trunk/gcc/testsuite/c-c++-common/gomp/pr58703.c Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/58703] [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause 2013-10-12 21:16 [Bug c++/58703] New: [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause reichelt at gcc dot gnu.org ` (4 preceding siblings ...) 2014-02-05 15:32 ` jakub at gcc dot gnu.org @ 2014-02-05 16:14 ` jakub at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: jakub at gcc dot gnu.org @ 2014-02-05 16:14 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58703 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-02-05 16:14 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-10-12 21:16 [Bug c++/58703] New: [4.9 Regression] ICE with invalid types in OpenMP declare reduction clause reichelt at gcc dot gnu.org 2013-10-12 21:16 ` [Bug c++/58703] " reichelt at gcc dot gnu.org 2013-10-14 9:02 ` rguenth at gcc dot gnu.org 2014-02-03 11:04 ` paolo.carlini at oracle dot com 2014-02-03 13:06 ` jakub at gcc dot gnu.org 2014-02-05 15:32 ` jakub at gcc dot gnu.org 2014-02-05 16:14 ` jakub at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).