From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 531 invoked by alias); 27 Jan 2014 04:38:06 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 510 invoked by uid 89); 27 Jan 2014 04:38:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-oa0-f49.google.com Received: from mail-oa0-f49.google.com (HELO mail-oa0-f49.google.com) (209.85.219.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 27 Jan 2014 04:38:04 +0000 Received: by mail-oa0-f49.google.com with SMTP id i7so6110136oag.22 for ; Sun, 26 Jan 2014 20:38:02 -0800 (PST) X-Received: by 10.60.16.168 with SMTP id h8mr4532917oed.32.1390797481794; Sun, 26 Jan 2014 20:38:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.240.16 with HTTP; Sun, 26 Jan 2014 20:37:41 -0800 (PST) In-Reply-To: <20140126144949.26627.qmail@sourceware.org> References: <20140126144949.26627.qmail@sourceware.org> From: Dongsheng Song Date: Mon, 27 Jan 2014 09:22:00 -0000 Message-ID: Subject: Re: r207119 - in /branches/gcc-4_7-branch/gcc: fort... To: mikael@gcc.gnu.org Cc: GCC Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00276.txt.bz2 This broken gcc 4.7 build due to use C++ grammar in C source file: static void skip_list (int nest_level =3D 0) { ... } gcc -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. -Ifortran -I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc -I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/fortran -I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/../include -I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/../libcpp/include -I/home/cauchy/obj/i686-w64-mingw32-gcc47/gcc/./gmp -I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gmp -I/home/cauchy/obj/i686-w64-mingw32-gcc47/gcc/./mpfr -I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/mpfr -I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/mpc/src -I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/../libdecnumber -I/home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/../libdecnumber/bid -I../libdecnumber /home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/fortran/module.c -o fortran/module.o /home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/fortran/module.c:3868:= 27: error: expected =E2=80=98;=E2=80=99, =E2=80=98,=E2=80=99 or =E2=80=98)=E2= =80=99 before =E2=80=98=3D=E2=80=99 token /home/cauchy/vcs/svn/gcc/branches/gcc-4_7-branch/gcc/fortran/module.c: In function =E2=80=98load_derived_extensions=E2=80=99:/home/cauchy/vcs/svn/= gcc/branches/gcc-4_7-branch/gcc/fortran/module.c:4231:6: warning: implicit declaration of function =E2=80=98skip_list=E2=80=99 [-Wimplicit-function-declaration] make[2]: *** [fortran/module.o] Error 1 On Sun, Jan 26, 2014 at 10:49 PM, wrote: > > Author: mikael > Date: Sun Jan 26 14:49:47 2014 > New Revision: 207119 > > URL: http://gcc.gnu.org/viewcvs?rev=3D207119&root=3Dgcc&view=3Drev > Log: > fortran/ > PR fortran/58007 > * module.c (fp2, find_pointer2): Remove. > (mio_component_ref): Don't forcedfully set the containing derived= type > symbol for loading. Remove unused argument. > (mio_ref): Update caller > (skip_list): New argument nest_level. Initialize level with the = new > argument. > (read_module): Add forced pointer components association for deri= ved > type symbols. > > testsuite/ > PR fortran/58007 > * gfortran.dg/unresolved_fixup_1.f90: New test. > * gfortran.dg/unresolved_fixup_2.f90: New test. > > > Added: > branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/unresolved_fixup_1.= f90 > branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/unresolved_fixup_2.= f90 > Modified: > branches/gcc-4_7-branch/gcc/fortran/ChangeLog > branches/gcc-4_7-branch/gcc/fortran/module.c > branches/gcc-4_7-branch/gcc/testsuite/ChangeLog >