public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14189] New: template inlining failed warning - with optimization -O2
@ 2004-02-18 11:55 yotamm at mellanox dot co dot il
2004-02-18 13:11 ` [Bug c++/14189] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: yotamm at mellanox dot co dot il @ 2004-02-18 11:55 UTC (permalink / raw)
To: gcc-bugs
swlab35:39> cat Y.cpp
// Following fails when compiled by g++-3.3.1 with:
// g++ -O2 -fno-exceptions -Winline -Werror
class Gin
{
public:
Gin();
virtual ~Gin() {}
void up() const;
}; // Gin
template<class T>
class Kup
{
public:
Kup(): _p(0) {}
Kup(T p): _p(p) {
if (_p)
{
_p->up();
}
}
T _p;
}; // Kup
class HCABase : public Gin
{
public:
HCABase();
virtual ~HCABase();
}; /* HCABase */
class WQ
{
public:
WQ(HCABase* h);
virtual ~WQ();
Kup<HCABase*> _hca;
}; // WQ
WQ::WQ(HCABase* h) :
_hca(h)
{
} // WQ::WQ
swlab35:40> g++ -O2 -fno-exceptions -Winline -c -o /tmp/Y.o Y.cpp
Y.cpp: In member function `WQ::WQ(HCABase*)':
Y.cpp:16: warning: inlining failed in call to `Kup<T>::Kup(T) [with T =
HCABase*]'
Y.cpp:44: warning: called from here
Y.cpp: In member function `WQ::WQ(HCABase*)':
Y.cpp:16: warning: inlining failed in call to `Kup<T>::Kup(T) [with T =
HCABase*]'
Y.cpp:44: warning: called from here
swlab35:41>
--
Summary: template inlining failed warning - with optimization -O2
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: yotamm at mellanox dot co dot il
CC: gcc-bugs at gcc dot gnu dot org,yotamm at mellanox dot
co dot il
GCC host triplet: i586-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14189
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/14189] template inlining failed warning - with optimization -O2
2004-02-18 11:55 [Bug c++/14189] New: template inlining failed warning - with optimization -O2 yotamm at mellanox dot co dot il
@ 2004-02-18 13:11 ` pinskia at gcc dot gnu dot org
2004-02-18 16:21 ` yotamm at mellanox dot co dot il
2004-04-17 15:50 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-18 13:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-18 13:11 -------
What target is this on, as I cannot reproduce it on i686-pc-linux-gnu or powerpc-apple-darwin?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14189
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/14189] template inlining failed warning - with optimization -O2
2004-02-18 11:55 [Bug c++/14189] New: template inlining failed warning - with optimization -O2 yotamm at mellanox dot co dot il
2004-02-18 13:11 ` [Bug c++/14189] " pinskia at gcc dot gnu dot org
@ 2004-02-18 16:21 ` yotamm at mellanox dot co dot il
2004-04-17 15:50 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: yotamm at mellanox dot co dot il @ 2004-02-18 16:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From yotamm at mellanox dot co dot il 2004-02-18 16:21 -------
(In reply to comment #1)
> What target is this on, as I cannot reproduce it on i686-pc-linux-gnu or
powerpc-apple-darwin?
I hope this answers teh above:
uname -a; arch
Linux swlab35 2.6.2 #5 SMP Wed Feb 11 15:41:53 IST 2004 i686 i686 i386 GNU/Linux
i686
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14189
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/14189] template inlining failed warning - with optimization -O2
2004-02-18 11:55 [Bug c++/14189] New: template inlining failed warning - with optimization -O2 yotamm at mellanox dot co dot il
2004-02-18 13:11 ` [Bug c++/14189] " pinskia at gcc dot gnu dot org
2004-02-18 16:21 ` yotamm at mellanox dot co dot il
@ 2004-04-17 15:50 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-17 15:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-17 15:21 -------
This works for me on the released version of 3.3.3. This might have been a bug in your
vender's gcc.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14189
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-04-17 15:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-18 11:55 [Bug c++/14189] New: template inlining failed warning - with optimization -O2 yotamm at mellanox dot co dot il
2004-02-18 13:11 ` [Bug c++/14189] " pinskia at gcc dot gnu dot org
2004-02-18 16:21 ` yotamm at mellanox dot co dot il
2004-04-17 15:50 ` pinskia 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).