This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Committed] New test for PR 66707 - Endless compilation on wrong usage of common
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Dominique d'HumiÃres <dominiq at lps dot ens dot fr>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, jmdavis at link dot com, Mikael Morin <mikael dot morin at sfr dot fr>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 30 Jan 2016 16:45:57 +0100
- Subject: Re: [Committed] New test for PR 66707 - Endless compilation on wrong usage of common
- Authentication-results: sourceware.org; auth=none
- References: <51B0F810-BF82-44E5-8A2C-E02EDC97084C at lps dot ens dot fr>
Hi Dominique,
Thanks for doing this. Yes, it's OK for 5-branch as well.
Cheers
Paul
On 30 January 2016 at 15:16, Dominique d'HumiÃres <dominiq@lps.ens.fr> wrote:
> AFAICT PR 66707 has been fixed/ prevented/hidden by revision r226732. I have committed the following as obvious
>
> Index: gcc/testsuite/ChangeLog
> ===================================================================
> --- gcc/testsuite/ChangeLog (revision 233007)
> +++ gcc/testsuite/ChangeLog (working copy)
> @@ -1,3 +1,8 @@
> +2016-01-30 Dominique d'Humieres <dominiq@lps.ens.fr>
> +
> + PR fortran/66707
> + gfortran.dg/common_23.f90: New test.
> +
> 2016-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
>
> PR target/65546
> Index: gcc/testsuite/gfortran.dg/common_23.f90
> ===================================================================
> --- gcc/testsuite/gfortran.dg/common_23.f90 (nonexistent)
> +++ gcc/testsuite/gfortran.dg/common_23.f90 (working copy)
> @@ -0,0 +1,10 @@
> +! { dg-do compile }
> +!
> +! PR fortran/66707
> +! Check the compilation on wrong usage of common
> +! Contributed by Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de>
> +program p
> + integer, pointer :: a
> + common a, a ! { dg-error "is already in a COMMON block" }
> + common a
> +end
>
> I have tested (on x86_64-apple-darwin15) that revision r226732 can be trivially back ported to the gcc5 branch. Is it OK to do this back port?
>
> TIA
>
> Dominique
>
--
The difference between genius and stupidity is; genius has its limits.
Albert Einstein