This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/85470] [7/8 Regression] Strange error about "call to non-constexpr function"
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 Apr 2018 16:49:04 +0000
- Subject: [Bug c++/85470] [7/8 Regression] Strange error about "call to non-constexpr function"
- Auto-submitted: auto-generated
- References: <bug-85470-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85470
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-04-19
CC| |jason at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
r200450 added
- if (DECL_DECLARED_CONSTEXPR_P (decl))
+ if (DECL_DECLARED_CONSTEXPR_P (decl)
+ || DECL_IN_AGGR_P (decl))
I wonder if it shouldn't have been DECL_INITIALIZED_IN_CLASS_P instead, or
DECL_IN_AGGR_P (decl) && DECL_INITIALIZED_IN_CLASS_P (decl).
If DECL_IN_AGGR_P (decl) check is right here, then the question is why it is
set when there is the extern template line (and not otherwise).