https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113665
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|tree-optimization |ipa Keywords| |needs-bisection, | |needs-reduction Status|UNCONFIRMED |NEW Last reconfirmed| |2024-01-30 Ever confirmed|0 |1 Target Milestone|--- |11.5 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. The issue is IPA ICF figures out that bitfield<288>::test and bitfield<592>::test are the same but really they are not due to the size being different. /app/example.cpp:18:10: optimized: Semantic equality hit:bool bitfield<S>::test(size_t) const [with long unsigned int S = 288]/60->bool bitfield<S>::test(size_t) const [with long unsigned int S = 592]/61 /app/example.cpp:18:10: optimized: Assembler symbol names:_ZNK8bitfieldILm288EE4testEm.part.0/60->_ZNK8bitfieldILm592EE4testEm.part.0/61