------- Comment #3 from jason at gcc dot gnu dot org 2009-11-10 18:53 ------- This falls in the category of diagnosing ODR violations, which we don't really try to do currently. It would be possible to do some ODR checking based on the debug info that we already emit; that seems a more promising route than breaking the ABI for this sort of thing.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40527