public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33066] New: "type, bind(C) t": Diagnose missing "::"
@ 2007-08-14 15:37 burnus at gcc dot gnu dot org
2007-08-14 21:16 ` [Bug fortran/33066] " fxcoudert at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-08-14 15:37 UTC (permalink / raw)
To: gcc-bugs
R430 derived-type-stmt is TYPE [ [ , type-attr-spec-list ] :: ] type-name
[ ( type-param-name-list ) ]
Thus the :: is mandatory, however, gfortran does not give any diagnostic with
-std=f2003.
Expected: As with "type, private :: t" or "type, private, bind(c) t" give a
diagnostic error such as:
Error: Expected :: in TYPE definition at (1)
Test case:
module a
type, private, bind(C) b
integer :: i
end type b
end module a
Note: g95 also accepts it without :: whereas NAG f95 and ifort give an error.
--
Summary: "type, bind(C) t": Diagnose missing "::"
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33066
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/33066] "type, bind(C) t": Diagnose missing "::"
2007-08-14 15:37 [Bug fortran/33066] New: "type, bind(C) t": Diagnose missing "::" burnus at gcc dot gnu dot org
@ 2007-08-14 21:16 ` fxcoudert at gcc dot gnu dot org
2007-08-14 23:26 ` fxcoudert at gcc dot gnu dot org
2007-08-14 23:28 ` fxcoudert at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-14 21:16 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2007-08-14 21:16:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33066
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/33066] "type, bind(C) t": Diagnose missing "::"
2007-08-14 15:37 [Bug fortran/33066] New: "type, bind(C) t": Diagnose missing "::" burnus at gcc dot gnu dot org
2007-08-14 21:16 ` [Bug fortran/33066] " fxcoudert at gcc dot gnu dot org
@ 2007-08-14 23:26 ` fxcoudert at gcc dot gnu dot org
2007-08-14 23:28 ` fxcoudert at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-14 23:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-08-14 23:26 -------
Subject: Bug 33066
Author: fxcoudert
Date: Tue Aug 14 23:26:23 2007
New Revision: 127497
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127497
Log:
PR fortran/33066
* decl.c (gfc_get_type_attr_spec): Fix whitespace.
(gfc_match_derived_decl): Fix logic.
* gfortran.dg/use_8.f90: New test.
* gfortran.dg/c_loc_tests_2.f03: Fix code.
Added:
trunk/gcc/testsuite/gfortran.dg/use_8.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/c_loc_tests_2.f03
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33066
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/33066] "type, bind(C) t": Diagnose missing "::"
2007-08-14 15:37 [Bug fortran/33066] New: "type, bind(C) t": Diagnose missing "::" burnus at gcc dot gnu dot org
2007-08-14 21:16 ` [Bug fortran/33066] " fxcoudert at gcc dot gnu dot org
2007-08-14 23:26 ` fxcoudert at gcc dot gnu dot org
@ 2007-08-14 23:28 ` fxcoudert at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-14 23:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-08-14 23:28 -------
Fixed.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33066
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-14 23:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-14 15:37 [Bug fortran/33066] New: "type, bind(C) t": Diagnose missing "::" burnus at gcc dot gnu dot org
2007-08-14 21:16 ` [Bug fortran/33066] " fxcoudert at gcc dot gnu dot org
2007-08-14 23:26 ` fxcoudert at gcc dot gnu dot org
2007-08-14 23:28 ` fxcoudert at gcc dot gnu dot 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).