This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC PATCH] avoid applying attributes to explicit specializations (PR 83871)
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Martin Sebor <msebor at gmail dot com>
- Cc: Jason Merrill <jason at redhat dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 5 Feb 2018 23:44:26 +0000
- Subject: Re: [RFC PATCH] avoid applying attributes to explicit specializations (PR 83871)
- Authentication-results: sourceware.org; auth=none
- References: <c5de6b02-9c3d-4e91-95b4-3fa138981af8@gmail.com>
On Sun, 4 Feb 2018, Martin Sebor wrote:
> We've talked about (2) in the past (bug 71463) but this seems
> like an opportunity to revisit it and (hopefully) make a change
> to treat these the same as all other function attributes rather
> than type attributes. Besides fixing the wrong code bugs and
I'd say that actually more attributes should be made into type attributes
where they are currently function attributes - anything that affects
optimizations or warnings in the caller based on properties of the callee
is something where it's meaningful to have a pointer-to-function where the
pointed-to function type has that property.
--
Joseph S. Myers
joseph@codesourcery.com