public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17256] [3.4/4.0/4.1 Regression] undefined but used static or inline functions should be diagnosed
[not found] <bug-17256-230@http.gcc.gnu.org/bugzilla/>
@ 2005-10-11 6:41 ` phython at gcc dot gnu dot org
2005-10-11 6:42 ` phython at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-10-11 6:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from phython at gcc dot gnu dot org 2005-10-11 06:41 -------
Created an attachment (id=9962)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9962&action=view)
treat nonmember static functions like inline functions
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17256
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/17256] [3.4/4.0/4.1 Regression] undefined but used static or inline functions should be diagnosed
[not found] <bug-17256-230@http.gcc.gnu.org/bugzilla/>
2005-10-11 6:41 ` [Bug c++/17256] [3.4/4.0/4.1 Regression] undefined but used static or inline functions should be diagnosed phython at gcc dot gnu dot org
@ 2005-10-11 6:42 ` phython at gcc dot gnu dot org
2005-10-29 1:50 ` jason at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-10-11 6:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from phython at gcc dot gnu dot org 2005-10-11 06:42 -------
Created an attachment (id=9963)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9963&action=view)
testcase
This patch also changes the error in:
static void f();
void g() { f(); }
into a warning.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17256
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/17256] [3.4/4.0/4.1 Regression] undefined but used static or inline functions should be diagnosed
[not found] <bug-17256-230@http.gcc.gnu.org/bugzilla/>
2005-10-11 6:41 ` [Bug c++/17256] [3.4/4.0/4.1 Regression] undefined but used static or inline functions should be diagnosed phython at gcc dot gnu dot org
2005-10-11 6:42 ` phython at gcc dot gnu dot org
@ 2005-10-29 1:50 ` jason at gcc dot gnu dot org
2005-10-30 22:51 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu dot org @ 2005-10-29 1:50 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2005-07-12 06:35:36 |2005-10-29 01:50:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17256
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/17256] [3.4/4.0/4.1 Regression] undefined but used static or inline functions should be diagnosed
[not found] <bug-17256-230@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2005-10-29 1:50 ` jason at gcc dot gnu dot org
@ 2005-10-30 22:51 ` mmitchel at gcc dot gnu dot org
2005-11-03 22:12 ` janis at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-30 22:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from mmitchel at gcc dot gnu dot org 2005-10-30 22:51 -------
Leaving as P2; we should try to fix this, but it's not a showstopper.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17256
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/17256] [3.4/4.0/4.1 Regression] undefined but used static or inline functions should be diagnosed
[not found] <bug-17256-230@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2005-10-30 22:51 ` mmitchel at gcc dot gnu dot org
@ 2005-11-03 22:12 ` janis at gcc dot gnu dot org
2005-11-07 6:17 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-11-03 22:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from janis at gcc dot gnu dot org 2005-11-03 22:12 -------
A regression hunt showed that "warning: inline function `void f1()' used
but never defined" disappeared with this patch to make the C++ front end
always work in unit-at-a-time mode:
r85309 | mmitchel | 2004-07-29 17:59:31 +0000 (Thu, 29 Jul 2004) | 124 lines
http://gcc.gnu.org/viewcvs?view=rev&rev=85309
Sometime in 2004-09-09 - 2004-09-24 it got "error: 'void f1()' used but
never defined", which went away sometime in 2004-10-08 - 2004-10-27. I can
run regression hunts on either or both of those if the information would be
useful.
The patch in comment #10 has never been submitted, so this PR doesn't have
the "patch" keyword.
--
janis at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17256
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/17256] [3.4/4.0/4.1 Regression] undefined but used static or inline functions should be diagnosed
[not found] <bug-17256-230@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2005-11-03 22:12 ` janis at gcc dot gnu dot org
@ 2005-11-07 6:17 ` jason at gcc dot gnu dot org
2005-11-07 13:17 ` [Bug c++/17256] [3.4/4.0 " pinskia at gcc dot gnu dot org
2005-11-10 18:32 ` jason at gcc dot gnu dot org
7 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu dot org @ 2005-11-07 6:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from jason at gcc dot gnu dot org 2005-11-07 06:17 -------
Subject: Bug 17256
Author: jason
Date: Mon Nov 7 06:17:47 2005
New Revision: 106581
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106581
Log:
PR c++/17256
* decl2.c (cp_finish_file): Fix conditions for undefined warning.
Set TREE_NO_WARNING instead of TREE_PUBLIC.
* pt.c (instantiate_pending_templates): Set DECL_INITIAL to avoid
a warning on a function we didn't instantiate because of excessive
recursion.
Added:
trunk/gcc/testsuite/g++.dg/warn/undefined1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl2.c
trunk/gcc/cp/pt.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17256
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/17256] [3.4/4.0 Regression] undefined but used static or inline functions should be diagnosed
[not found] <bug-17256-230@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2005-11-07 6:17 ` jason at gcc dot gnu dot org
@ 2005-11-07 13:17 ` pinskia at gcc dot gnu dot org
2005-11-10 18:32 ` jason at gcc dot gnu dot org
7 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-07 13:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from pinskia at gcc dot gnu dot org 2005-11-07 13:17 -------
Fixed at least on the mainline.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.3.4 3.4.0 4.0.0 4.1.0 |3.3.4 3.4.0 4.0.0
Known to work|2.95.3 |2.95.3 4.1.0
Summary|[3.4/4.0/4.1 Regression] |[3.4/4.0 Regression]
|undefined but used static or|undefined but used static or
|inline functions should be |inline functions should be
|diagnosed |diagnosed
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17256
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/17256] [3.4/4.0 Regression] undefined but used static or inline functions should be diagnosed
[not found] <bug-17256-230@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2005-11-07 13:17 ` [Bug c++/17256] [3.4/4.0 " pinskia at gcc dot gnu dot org
@ 2005-11-10 18:32 ` jason at gcc dot gnu dot org
7 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu dot org @ 2005-11-10 18:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #16 from jason at gcc dot gnu dot org 2005-11-10 18:32 -------
The patch breaks the 4.0 branch compiler, and I don't think this is a serious
enough bug to put more work into coming up with a different fix for older
releases.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17256
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-11-10 18:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-17256-230@http.gcc.gnu.org/bugzilla/>
2005-10-11 6:41 ` [Bug c++/17256] [3.4/4.0/4.1 Regression] undefined but used static or inline functions should be diagnosed phython at gcc dot gnu dot org
2005-10-11 6:42 ` phython at gcc dot gnu dot org
2005-10-29 1:50 ` jason at gcc dot gnu dot org
2005-10-30 22:51 ` mmitchel at gcc dot gnu dot org
2005-11-03 22:12 ` janis at gcc dot gnu dot org
2005-11-07 6:17 ` jason at gcc dot gnu dot org
2005-11-07 13:17 ` [Bug c++/17256] [3.4/4.0 " pinskia at gcc dot gnu dot org
2005-11-10 18:32 ` jason at gcc dot gnu dot 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).