[Bug c++/51812] [4.7 regression] Virtual public inheritance and thunks leads to "undefined reference" in header files.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51812 --- Comment #9 from bredelin at ucla dot edu 2012-01-29 18:30:43 UTC --- Thanks :-)
[Bug c++/51812] [4.7 regression] Virtual public inheritance and thunks leads to "undefined reference" in header files.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51812 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED --- Comment #8 from Jason Merrill 2012-01-24 13:38:13 UTC --- Fixed.
[Bug c++/51812] [4.7 regression] Virtual public inheritance and thunks leads to "undefined reference" in header files.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51812 --- Comment #7 from Jason Merrill 2012-01-24 13:37:43 UTC --- Author: jason Date: Tue Jan 24 13:37:38 2012 New Revision: 183475 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183475 Log: PR c++/51812 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always output static aliases. Added: trunk/gcc/testsuite/g++.dg/inherit/covariant20.C Modified: trunk/gcc/ChangeLog trunk/gcc/cgraphunit.c trunk/gcc/testsuite/ChangeLog
[Bug c++/51812] [4.7 regression] Virtual public inheritance and thunks leads to "undefined reference" in header files.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51812 --- Comment #6 from bredelin at ucla dot edu 2012-01-23 22:46:47 UTC --- I will check this patch tomorrow (Jan 24th) to make sure that it fixes the problem on non-reduced test cases.
[Bug c++/51812] [4.7 regression] Virtual public inheritance and thunks leads to "undefined reference" in header files.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51812 --- Comment #5 from Jason Merrill 2012-01-23 18:05:01 UTC --- Patch at http://gcc.gnu.org/ml/gcc-patches/2012-01/msg01160.html
[Bug c++/51812] [4.7 regression] Virtual public inheritance and thunks leads to "undefined reference" in header files.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51812 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org |gnu.org |
[Bug c++/51812] [4.7 regression] Virtual public inheritance and thunks leads to "undefined reference" in header files.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51812 Andrew Pinski changed: What|Removed |Added Target|x86_64-linux-gnu| CC||hubicka at gcc dot gnu.org Host|x86_64-linux-gnu| Summary|[4.7 regression] Virtual|[4.7 regression] Virtual |public inheritance leads to |public inheritance and |"undefined reference" in|thunks leads to "undefined |header files. |reference" in header files. Build|x86_64-linux-gnu| --- Comment #4 from Andrew Pinski 2012-01-22 21:42:38 UTC --- Reduced testcase: class Object { virtual Object* clone() const =0; virtual char* print() const; }; class alphabet: virtual public Object{}; class Nucleotides: public alphabet {}; class DNA: public Nucleotides { virtual DNA* clone() const {return new DNA(*this);} }; int main() { } --- CUT --- This testcase requires thunks and virtual inheritance.