[Bug c++/90670] New: const& template parameter in a header trips -Wsubobject-linkage

2019-05-29 Thread adam1.byrd at gmail dot com
rmal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: adam1.byrd at gmail dot com Target Milestone: --- Placing the following code in a header and including it will spuriously cause the -Wsubobject-linkage warning. No special flags need t

[Bug c++/90670] const& template parameter in a header trips -Wsubobject-linkage

2023-09-15 Thread adam1.byrd at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90670 --- Comment #3 from Adam Byrd --- Hmm, I reckon that makes sense. Though the wording is confusing. Why is it "uses the anonymous namespace" instead of something like "has internal linkage". I'm not aware of an anonymous namespace being involved