re PR c++/14688 (Mis-matched calling convention on virtual functions accepted without...
authorDanny Smith <dannysmith@users.sourceforge.net>
Tue, 25 Sep 2007 00:29:42 +0000 (00:29 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Tue, 25 Sep 2007 00:29:42 +0000 (00:29 +0000)
commit18ff3013c2600a5138fbd51d5a90af1d3101ce1d
tree0cb7e4ad382ef40b1366d5f251d6999479bde0ac
parent2e104885214d399548cd5742e5b818cd63c02dbf
re PR c++/14688 (Mis-matched calling convention on virtual functions accepted without error)

PR c++/14688
* config/i386/i386.c (ix86_comp_type_attributes): Check
METHOD_TYPE too.

cp
* search.c (check_final_overrider): Fail if
targetm.comp_type_attributes returns 0.

testsuite
* g++.dg/inherit/override_attribs.C: New file.

From-SVN: r128740
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/cp/ChangeLog
gcc/cp/search.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/override-attribs.C [new file with mode: 0644]