From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53182 invoked by alias); 19 Aug 2015 14:57:28 -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 52079 invoked by uid 48); 19 Aug 2015 14:57:25 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/67276] New: duplicated missing terminating character diagnostic Date: Wed, 19 Aug 2015 14:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone 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/msg01336.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67276 Bug ID: 67276 Summary: duplicated missing terminating character diagnostic Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: manu at gcc dot gnu.org Target Milestone: --- >>From gcc.dg/pragma-message.c: #pragma message " /home/manuel/test.c:1:17: warning: missing terminating " character #pragma message " ^ /home/manuel/test.c:1:9: error: missing terminating " character #pragma message " ^ It doesn't make sense to give a warning if we are going to give an error anyway. Moreover, this is a pedwarn, so with -pedantic-errors we get two errors.