public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* Document PR 84073 change in /gcc-8/porting_to.html
@ 2018-05-10 10:33 Jonathan Wakely
  2018-05-10 12:21 ` Thomas Koenig
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Wakely @ 2018-05-10 10:33 UTC (permalink / raw)
  To: fortran; +Cc: tkoenig

Should the fix for PR 84073 be documented, so that users whose code is
now rejected understand why, and how to fix it?

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84073
https://gcc.gnu.org/gcc-8/porting_to.html#fortran

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Document PR 84073 change in /gcc-8/porting_to.html
  2018-05-10 10:33 Document PR 84073 change in /gcc-8/porting_to.html Jonathan Wakely
@ 2018-05-10 12:21 ` Thomas Koenig
  2018-05-10 15:19   ` Thomas König
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Koenig @ 2018-05-10 12:21 UTC (permalink / raw)
  To: Jonathan Wakely, fortran; +Cc: tkoenig

Am 10.05.2018 um 12:33 schrieb Jonathan Wakely:
> Should the fix for PR 84073 be documented, so that users whose code is
> now rejected understand why, and how to fix it?
> 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84073
> https://gcc.gnu.org/gcc-8/porting_to.html#fortran

Sounds like a good idea.

Since I introduced this, I'll do it within a few days (unless, of
course, somebody beats me to it, which I won't mind :-)

Regards

	Thomas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Document PR 84073 change in /gcc-8/porting_to.html
  2018-05-10 12:21 ` Thomas Koenig
@ 2018-05-10 15:19   ` Thomas König
  2018-05-10 15:32     ` Andre Vehreschild
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas König @ 2018-05-10 15:19 UTC (permalink / raw)
  To: Jonathan Wakely, fortran; +Cc: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 597 bytes --]

Am 10.05.2018 um 14:20 schrieb Thomas Koenig:
> Am 10.05.2018 um 12:33 schrieb Jonathan Wakely:
>> Should the fix for PR 84073 be documented, so that users whose code is
>> now rejected understand why, and how to fix it?
>>
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84073
>> https://gcc.gnu.org/gcc-8/porting_to.html#fortran
> 
> Sounds like a good idea.
> 
> Since I introduced this, I'll do it within a few days (unless, of
> course, somebody beats me to it, which I won't mind :-)

OK, not a few days, but a few hours :-)

Here is the diff.  OK to commit to gcc-docs?

Regards

	Thomas



[-- Attachment #2: porting.diff --]
[-- Type: text/x-patch, Size: 1159 bytes --]

Index: porting_to.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-8/porting_to.html,v
retrieving revision 1.6
diff -u -r1.6 porting_to.html
--- porting_to.html	4 May 2018 06:35:39 -0000	1.6
+++ porting_to.html	10 May 2018 15:16:57 -0000
@@ -196,7 +196,31 @@
       void foo_ (char*, int*, fortran_charlen_t);
   </code></pre>
 
+<p>
+  Versions of gfortran prior to 8.1 wrongly accepted CHARACTER
+  variables with a length type parameter other than one as C
+  interoperable. For example, the code
+  <pre><code>
+  module mod
+    use iso_c_binding
+    type, bind(C) :: a
+      character(len=2,kind=c_char) :: b ! Wrong
+    end type a
+    character(len=2), bind(C) :: c ! Also wrong
+  end module mod
+  </code></pre>
+  was accepted.  To achieve similar functionality, an array of
+  LEN=1 characters can be used, for example
+  <pre><code>
+  module mod
+    use iso_c_binding
+    type, bind(C) :: a
+      character(kind=c_char) :: b(2)
+    end type a
+    character(kind=c_char), bind(C) :: c(2)
+  end module mod
+  </code></pre>
+</p>
 <h2 id="links">Links</h2>
-
 </body>
 </html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Document PR 84073 change in /gcc-8/porting_to.html
  2018-05-10 15:19   ` Thomas König
@ 2018-05-10 15:32     ` Andre Vehreschild
  0 siblings, 0 replies; 4+ messages in thread
From: Andre Vehreschild @ 2018-05-10 15:32 UTC (permalink / raw)
  To: Thomas König; +Cc: Jonathan Wakely, fortran, gcc-patches

Hi Thomas,

looks ok to me.

- Andre

On Thu, 10 May 2018 17:19:39 +0200
Thomas König <tk@tkoenig.net> wrote:

> Am 10.05.2018 um 14:20 schrieb Thomas Koenig:
> > Am 10.05.2018 um 12:33 schrieb Jonathan Wakely:
> >> Should the fix for PR 84073 be documented, so that users whose code is
> >> now rejected understand why, and how to fix it?
> >>
> >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84073
> >> https://gcc.gnu.org/gcc-8/porting_to.html#fortran
> > 
> > Sounds like a good idea.
> > 
> > Since I introduced this, I'll do it within a few days (unless, of
> > course, somebody beats me to it, which I won't mind :-)
> 
> OK, not a few days, but a few hours :-)
> 
> Here is the diff.  OK to commit to gcc-docs?
> 
> Regards
> 
> 	Thomas
> 
> 


-- 
Andre Vehreschild * Email: vehre ad gmx dot de 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-10 15:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10 10:33 Document PR 84073 change in /gcc-8/porting_to.html Jonathan Wakely
2018-05-10 12:21 ` Thomas Koenig
2018-05-10 15:19   ` Thomas König
2018-05-10 15:32     ` Andre Vehreschild

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).