https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85783
--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> --- There is no standard way to say "don't inline this function." It's up to the compiler to decide what to inline just so long as it doesn't violate the requirements. There is also no requirement that the definition of the replacement operator contain an explicit throw statement. Your example in comment #5 is fine. But I'm not sure what the point is of these questions. I explained what causes the warning, and what makes the original test case less than 100% conforming. I'm not disputing that the warning is unhelpful (with a conforming test case or otherwise), or that it would be nice to avoid. I just don't see a way to do it in GCC (except by fixing bug 85795). That's why I resolved this as WONTFIX and not as INVALID, and why I opened bug 85795. That's a separate conformance issue that should be considered on its own. If that happens to get rid of the warning that's a bonus. What would you prefer me to do instead?