https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92104
Bug ID: 92104
Summary: __builtin_has_attribute in templates
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
Target Milestone: ---
The __builtin_has_attribute implementation in the C++ FE seems to be incorrect,
usually the C++ FE when parsing while processing_template_decl checks if the
corresponding types are dependent or expressions type (or value, depending on
case) dependent, if yes, builds some tree or whatever form that can be
evaluated again during instantiation, otherwise can handle it normally. In
some cases, it is handled normally when processing_template_decl and
non-dependent, but then the results are ignored and it is repeated during
instantiation.