This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13768] [3.4/3.5 Regression] -funit-at-a-time compiles unused inline function
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Feb 2004 09:25:30 -0000
- Subject: [Bug c++/13768] [3.4/3.5 Regression] -funit-at-a-time compiles unused inline function
- References: <20040120110040.13768.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-02-03 09:25 -------
The code is indeed invalid.
When a complete object of type X<int> is created, the compiler is allowed to
emit the vtable for X, and that permits instantiating the virtual functions.
However, this is an optimization deficiency in -funit-at-a-time.
I've therefore assigned the bug to Jan.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jh at suse dot cz
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13768