From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65445 invoked by alias); 19 Aug 2015 15:02:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 64684 invoked by uid 48); 19 Aug 2015 15:02:18 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/67276] duplicated missing terminating character diagnostic Date: Wed, 19 Aug 2015 15:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg01337.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67276 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |preprocessor --- Comment #1 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- This affects also C++ and it seems more like a preprocessor issue. >>From gcc-bugs-return-495196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Aug 19 15:07:50 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15291 invoked by alias); 19 Aug 2015 15:07:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15241 invoked by uid 48); 19 Aug 2015 15:07:45 -0000 From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/67277] New: segfault when passing a missing optional argument to an elemental intrinsic Date: Wed, 19 Aug 2015 15:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mikael at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg01338.txt.bz2 Content-length: 976 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67277 Bug ID: 67277 Summary: segfault when passing a missing optional argument to an elemental intrinsic Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mikael at gcc dot gnu.org Target Milestone: --- Created attachment 36214 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36214&action=edit test case The testcase is the intrinsic variant of generic_31.f90 from pr66929. It leads to a null pointer dereference at runtime when trying to evaluate the absent optional argument. The problem is the same as pr66929, we don't have a procedure interface symbol for the call, so we don't know that the dummy argument of the intrinsic procedure is optional, and thus assume that it is always present.