https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927
--- Comment #6 from vehre at gcc dot gnu.org ---
This fixes the issue:
diff --git a/gcc/fortran/trans-stmt.c b/gcc/fortran/trans-stmt.c
index 6409f7f..181cbce 100644
--- a/gcc/fortran/trans-stmt.c
+++ b/gcc/fortran/trans-stmt.c
@@ -5189,7 +5189,9
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927
vehre at gcc dot gnu.org changed:
What|Removed |Added
CC||vehre at gcc dot gnu.org
--- C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927
--- Comment #4 from Jürgen Reuter ---
Actually, we are using now
allocate (obj(1:size (func ()))
obj = func ()
as you are saying
allocate (obj, source = func ())
had problems in gfortran 4.7.X.
So the issue is not a problem for our code(s).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927
--- Comment #3 from vehre at gcc dot gnu.org ---
F2008, C633 says:
(R631) If allocate-object is an array either allocate-shape-spec-list shall
appear or source-expr shall appear and have the same rank as allocate-object.
If allocate-object is sca
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927
Dominique d'Humieres changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66927
--- Comment #1 from Jürgen Reuter ---
Forgot: my gcc svn revision is r224763.