[Bug c++/96516] template + __attribute__((copy)) produce compiler errors

2020-08-07 Thread sagebar at web dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96516 --- Comment #4 from sagebar at web dot de --- (In reply to sagebar from comment #3) > ..., _any_ attribute that > can be inherited via copy() can be made template-conditional in c++: Also note that I've tested if gcc (`-x c') allows multiple copy

[Bug c++/96516] template + __attribute__((copy)) produce compiler errors

2020-08-07 Thread sagebar at web dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96516 --- Comment #3 from sagebar at web dot de --- No problem. Also: What you just said made me realize that once __attribute__((copy)) works correctly with templates, _any_ attribute that can be inherited via copy() can be made template-conditional in

[Bug c++/96516] template + __attribute__((copy)) produce compiler errors

2020-08-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96516 --- Comment #2 from Martin Sebor --- Thank you for taking the time to put together all the test cases and reporting the problem, by the way!

[Bug c++/96516] template + __attribute__((copy)) produce compiler errors

2020-08-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96516 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Last reconfir