public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/81349] Classes with deleted constructor templates incorrectly labeled as non-aggregates
[not found] <bug-81349-4@http.gcc.gnu.org/bugzilla/>
@ 2020-03-19 23:45 ` herring at lanl dot gov
2020-03-26 8:32 ` cvs-commit at gcc dot gnu.org
2020-03-26 8:41 ` jakub at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: herring at lanl dot gov @ 2020-03-19 23:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81349
S. Davis Herring <herring at lanl dot gov> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |herring at lanl dot gov
--- Comment #2 from S. Davis Herring <herring at lanl dot gov> ---
C++20 makes classes like this not be aggregates (as modified by
<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1008r1.pdf>).
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/81349] Classes with deleted constructor templates incorrectly labeled as non-aggregates
[not found] <bug-81349-4@http.gcc.gnu.org/bugzilla/>
2020-03-19 23:45 ` [Bug c++/81349] Classes with deleted constructor templates incorrectly labeled as non-aggregates herring at lanl dot gov
@ 2020-03-26 8:32 ` cvs-commit at gcc dot gnu.org
2020-03-26 8:41 ` jakub at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-03-26 8:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81349
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:dab932d1519ba07fb4c49e6849ee7ceb02c0d603
commit r10-7394-gdab932d1519ba07fb4c49e6849ee7ceb02c0d603
Author: Jakub Jelinek <jakub@redhat.com>
Date: Thu Mar 26 09:31:15 2020 +0100
c++: Fix up user_provided_p [PR81349]
The standard says: "A function is user-provided if it is user-declared and
not explicitly defaulted or deleted on its first declaration."
I don't see anything about function templates having different rules here,
but user_provided_p does return true for all TEMPLATE_DECLs.
The following patch fixes it by treating as user-provided only templates
that aren't deleted.
2020-03-26 Jakub Jelinek <jakub@redhat.com>
PR c++/81349
* class.c (user_provided_p): Use STRIP_TEMPLATE instead of
returning
true for all TEMPLATE_DECLs.
* g++.dg/cpp1z/pr81349.C: New test.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/81349] Classes with deleted constructor templates incorrectly labeled as non-aggregates
[not found] <bug-81349-4@http.gcc.gnu.org/bugzilla/>
2020-03-19 23:45 ` [Bug c++/81349] Classes with deleted constructor templates incorrectly labeled as non-aggregates herring at lanl dot gov
2020-03-26 8:32 ` cvs-commit at gcc dot gnu.org
@ 2020-03-26 8:41 ` jakub at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-03-26 8:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81349
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Status|UNCONFIRMED |ASSIGNED
CC| |jakub at gcc dot gnu.org
Last reconfirmed| |2020-03-26
Ever confirmed|0 |1
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk. Unsure about backporting.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-26 8:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-81349-4@http.gcc.gnu.org/bugzilla/>
2020-03-19 23:45 ` [Bug c++/81349] Classes with deleted constructor templates incorrectly labeled as non-aggregates herring at lanl dot gov
2020-03-26 8:32 ` cvs-commit at gcc dot gnu.org
2020-03-26 8:41 ` jakub at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).