public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/63626] New: Warning "inline function declared but never defined" output twice
@ 2014-10-23  9:56 mpolacek at gcc dot gnu.org
  2014-10-23 16:48 ` [Bug c/63626] " mpolacek at gcc dot gnu.org
  2014-10-23 16:52 ` mpolacek at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-10-23  9:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63626

            Bug ID: 63626
           Summary: Warning "inline function declared but never defined"
                    output twice
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org

On this TU:

inline int foo (void);

we warn twice:
ff.c:1:12: warning: inline function ‘foo’ declared but never defined
 inline int foo (void);
            ^
ff.c:1:12: warning: inline function ‘foo’ declared but never defined
>From gcc-bugs-return-464720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 23 09:56:57 2014
Return-Path: <gcc-bugs-return-464720-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16964 invoked by alias); 23 Oct 2014 09:56:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16947 invoked by uid 48); 23 Oct 2014 09:56:53 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/63626] Warning "inline function declared but never defined" output twice
Date: Thu, 23 Oct 2014 09:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to target_milestone everconfirmed
Message-ID: <bug-63626-4-8LjCoDHPJg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63626-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63626-4@http.gcc.gnu.org/bugzilla/>
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: 2014-10/txt/msg01741.txt.bz2
Content-length: 680

https://gcc.gnu.org/bugzilla/show_bug.cgi?idc626

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2014-10-23
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org
   Target Milestone|---                         |5.0
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Mine.


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

* [Bug c/63626] Warning "inline function declared but never defined" output twice
  2014-10-23  9:56 [Bug c/63626] New: Warning "inline function declared but never defined" output twice mpolacek at gcc dot gnu.org
@ 2014-10-23 16:48 ` mpolacek at gcc dot gnu.org
  2014-10-23 16:52 ` mpolacek at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-10-23 16:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63626

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Oct 23 16:46:44 2014
New Revision: 216595

URL: https://gcc.gnu.org/viewcvs?rev=216595&root=gcc&view=rev
Log:
    PR c/63626
    * c-decl.c (pop_scope): Don't print warning in external_scope.

    * gcc.dg/pr63626.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr63626.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c/63626] Warning "inline function declared but never defined" output twice
  2014-10-23  9:56 [Bug c/63626] New: Warning "inline function declared but never defined" output twice mpolacek at gcc dot gnu.org
  2014-10-23 16:48 ` [Bug c/63626] " mpolacek at gcc dot gnu.org
@ 2014-10-23 16:52 ` mpolacek at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-10-23 16:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63626

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.


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

end of thread, other threads:[~2014-10-23 16:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-23  9:56 [Bug c/63626] New: Warning "inline function declared but never defined" output twice mpolacek at gcc dot gnu.org
2014-10-23 16:48 ` [Bug c/63626] " mpolacek at gcc dot gnu.org
2014-10-23 16:52 ` mpolacek at gcc dot gnu.org

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