public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11067] New: [3.3/3.4 regression] Strange warning with abstract virtual inline function
@ 2003-06-02 18:19 reichelt@gcc.gnu.org
2003-06-02 18:45 ` [Bug c++/11067] " pinskia@physics.uc.edu
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: reichelt@gcc.gnu.org @ 2003-06-02 18:19 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11067
Summary: [3.3/3.4 regression] Strange warning with abstract
virtual inline function
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P4
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
CC: gcc-bugs@gcc.gnu.org
GCC host triplet: i686-pc-linux-gnu
Compiling the following code snippet, I get a strange warning:
-------------------------------------------------
struct A
{
virtual inline void foo() const=0;
void bar() { foo(); }
};
-------------------------------------------------
The warning reads:
warn.cc:3: warning: inline function `virtual void A::foo() const' used but
never defined
The keyword "inline" doesn't make much sense, but the warning is confusing IMHO.
The warning was introduced in gcc 3.3, so I rate this as a regression.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/11067] [3.3/3.4 regression] Strange warning with abstract virtual inline function
2003-06-02 18:19 [Bug c++/11067] New: [3.3/3.4 regression] Strange warning with abstract virtual inline function reichelt@gcc.gnu.org
@ 2003-06-02 18:45 ` pinskia@physics.uc.edu
2003-06-11 22:36 ` pinskia@physics.uc.edu
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-02 18:45 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11067
pinskia@physics.uc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-06-02 18:45:42
date| |
------- Additional Comments From pinskia@physics.uc.edu 2003-06-02 18:45 -------
One of the reason the warning was introduced in 3.3 was because -Winline was not say
when something was not inlined, now it looks like it is over warning. It is most likely
connected with bug 10929.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/11067] [3.3/3.4 regression] Strange warning with abstract virtual inline function
2003-06-02 18:19 [Bug c++/11067] New: [3.3/3.4 regression] Strange warning with abstract virtual inline function reichelt@gcc.gnu.org
2003-06-02 18:45 ` [Bug c++/11067] " pinskia@physics.uc.edu
@ 2003-06-11 22:36 ` pinskia@physics.uc.edu
2003-06-22 2:49 ` pinskia at physics dot uc dot edu
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-11 22:36 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11067
pinskia@physics.uc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |3.3.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/11067] [3.3/3.4 regression] Strange warning with abstract virtual inline function
2003-06-02 18:19 [Bug c++/11067] New: [3.3/3.4 regression] Strange warning with abstract virtual inline function reichelt@gcc.gnu.org
2003-06-02 18:45 ` [Bug c++/11067] " pinskia@physics.uc.edu
2003-06-11 22:36 ` pinskia@physics.uc.edu
@ 2003-06-22 2:49 ` pinskia at physics dot uc dot edu
2003-06-22 2:49 ` pinskia at physics dot uc dot edu
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-06-22 2:49 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11067
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at physics dot uc
|dot org |dot edu
------- Additional Comments From pinskia at physics dot uc dot edu 2003-06-22 02:47 -------
I have a small patch which fixes this, will post soon.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/11067] [3.3/3.4 regression] Strange warning with abstract virtual inline function
2003-06-02 18:19 [Bug c++/11067] New: [3.3/3.4 regression] Strange warning with abstract virtual inline function reichelt@gcc.gnu.org
` (2 preceding siblings ...)
2003-06-22 2:49 ` pinskia at physics dot uc dot edu
@ 2003-06-22 2:49 ` pinskia at physics dot uc dot edu
2003-06-23 16:00 ` janis187 at us dot ibm dot com
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-06-22 2:49 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11067
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Last reconfirmed|2003-06-02 18:45:42 |2003-06-22 02:47:56
date| |
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/11067] [3.3/3.4 regression] Strange warning with abstract virtual inline function
2003-06-02 18:19 [Bug c++/11067] New: [3.3/3.4 regression] Strange warning with abstract virtual inline function reichelt@gcc.gnu.org
` (3 preceding siblings ...)
2003-06-22 2:49 ` pinskia at physics dot uc dot edu
@ 2003-06-23 16:00 ` janis187 at us dot ibm dot com
2003-06-23 23:37 ` bangerth at dealii dot org
2003-06-24 22:41 ` pinskia at physics dot uc dot edu
6 siblings, 0 replies; 8+ messages in thread
From: janis187 at us dot ibm dot com @ 2003-06-23 16:00 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11067
------- Additional Comments From janis187 at us dot ibm dot com 2003-06-23 16:00 -------
The regression in 11067 was introduced/exposed by this patch (I see that
Andrew has a patch, but this might still be useful):
--- gcc/gcc/cp/ChangeLog ---
> 2002-12-26 Nathan Sidwell <nathan@codesourcery.com>
>
> PR c++/4803
> * decl2.c (mark_used): Defer inline functions.
> (finish_file): Merge deferred_fns loops. Check all used
> inline functions have a definition.
> * method.c (make_thunk): Thunks are not inline.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/11067] [3.3/3.4 regression] Strange warning with abstract virtual inline function
2003-06-02 18:19 [Bug c++/11067] New: [3.3/3.4 regression] Strange warning with abstract virtual inline function reichelt@gcc.gnu.org
` (4 preceding siblings ...)
2003-06-23 16:00 ` janis187 at us dot ibm dot com
@ 2003-06-23 23:37 ` bangerth at dealii dot org
2003-06-24 22:41 ` pinskia at physics dot uc dot edu
6 siblings, 0 replies; 8+ messages in thread
From: bangerth at dealii dot org @ 2003-06-23 23:37 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11067
------- Additional Comments From bangerth at dealii dot org 2003-06-23 23:37 -------
The patch is here:
http://gcc.gnu.org/ml/gcc-patches/2003-06/msg02517.html
However, I think it's wrong, see
http://gcc.gnu.org/ml/gcc-patches/2003-06/msg02519.html
http://gcc.gnu.org/ml/gcc-patches/2003-06/msg02543.html
W.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/11067] [3.3/3.4 regression] Strange warning with abstract virtual inline function
2003-06-02 18:19 [Bug c++/11067] New: [3.3/3.4 regression] Strange warning with abstract virtual inline function reichelt@gcc.gnu.org
` (5 preceding siblings ...)
2003-06-23 23:37 ` bangerth at dealii dot org
@ 2003-06-24 22:41 ` pinskia at physics dot uc dot edu
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-06-24 22:41 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11067
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |WONTFIX
------- Additional Comments From pinskia at physics dot uc dot edu 2003-06-24 21:18 -------
The warning is right so closing as not going to be fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-06-24 22:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-02 18:19 [Bug c++/11067] New: [3.3/3.4 regression] Strange warning with abstract virtual inline function reichelt@gcc.gnu.org
2003-06-02 18:45 ` [Bug c++/11067] " pinskia@physics.uc.edu
2003-06-11 22:36 ` pinskia@physics.uc.edu
2003-06-22 2:49 ` pinskia at physics dot uc dot edu
2003-06-22 2:49 ` pinskia at physics dot uc dot edu
2003-06-23 16:00 ` janis187 at us dot ibm dot com
2003-06-23 23:37 ` bangerth at dealii dot org
2003-06-24 22:41 ` pinskia at physics dot uc dot edu
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).