[Bug c++/24451] [gomp] Return out of parallel loop not rejected
--- Comment #2 from cvs-commit at gcc dot gnu dot org 2005-10-21 22:07 --- Subject: Bug 24451 CVSROOT:/cvs/gcc Module name:gcc Branch: gomp-20050608-branch Changes by: [EMAIL PROTECTED] 2005-10-21 22:06:53 Modified files: gcc/cp : ChangeLog.gomp cp-tree.h decl.c semantics.c Added files: gcc/testsuite/g++.dg/gomp: block-8.C gcc/testsuite/gcc.dg/gomp: block-8.c Log message: PR c++/24451 * decl.c (check_omp_return): Return false on error. * cp-tree.h (check_omp_return): Update decl. * semantics.c (finish_return_stmt): Avoid adding return on error. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.gomp.diff?cvsroot=gcconly_with_tag=gomp-20050608-branchr1=1.1.8.16r2=1.1.8.17 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcconly_with_tag=gomp-20050608-branchr1=1.1144.4.15r2=1.1144.4.16 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcconly_with_tag=gomp-20050608-branchr1=1.1403.4.11r2=1.1403.4.12 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcconly_with_tag=gomp-20050608-branchr1=1.475.4.14r2=1.475.4.15 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/gomp/block-8.C.diff?cvsroot=gcconly_with_tag=gomp-20050608-branchr1=NONEr2=1.1.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/gomp/block-8.c.diff?cvsroot=gcconly_with_tag=gomp-20050608-branchr1=NONEr2=1.1.2.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24451
[Bug c++/24451] [gomp] Return out of parallel loop not rejected
--- Comment #3 from rth at gcc dot gnu dot org 2005-10-21 22:10 --- Fixed. -- rth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24451
[Bug c++/24451] [gomp] Return out of parallel loop not rejected
--- Comment #1 from reichelt at gcc dot gnu dot org 2005-10-20 16:39 --- Hey the development is really fast on the gomp branch. The C frontend seems to be fixed now. I get a sensible error message now for both testcases: bug.c: In function '__omp_fn.1': bug.c:6: error: invalid exit from OpenMP structured block Btw, should this really be __omp_fn.1? The C++ frontend remains broken, however: I get a sgefault now for both testcases. -- reichelt at gcc dot gnu dot org changed: What|Removed |Added Component|c |c++ Keywords|accepts-invalid | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24451
[Bug c++/24451] [gomp] Return out of parallel loop not rejected
-- rth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org |dot org | Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2005-10-20 20:14:35 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24451