public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104225] New: accepts-invalid new expression that uses deleted implicit default constructor of class specialization
@ 2022-01-25 15:45 ppalka at gcc dot gnu.org
  2022-01-25 15:48 ` [Bug c++/104225] [9/10/11/12 Regression] " ppalka at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-01-25 15:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104225

            Bug ID: 104225
           Summary: accepts-invalid new expression that uses deleted
                    implicit default constructor of class specialization
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

The following testcase compiles without error, but should be rejected because
it uses B's deleted default constructor:

class A { ~A(); };
template <class> class B { A f = 1; };
int main() {
  new B<int>;
}

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-05-11 15:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25 15:45 [Bug c++/104225] New: accepts-invalid new expression that uses deleted implicit default constructor of class specialization ppalka at gcc dot gnu.org
2022-01-25 15:48 ` [Bug c++/104225] [9/10/11/12 Regression] " ppalka at gcc dot gnu.org
2022-01-25 20:05 ` cvs-commit at gcc dot gnu.org
2022-01-25 20:06 ` ppalka at gcc dot gnu.org
2022-01-25 20:07 ` [Bug c++/104225] [9/10/11 " ppalka at gcc dot gnu.org
2022-01-26  7:33 ` rguenth at gcc dot gnu.org
2022-04-12 23:44 ` cvs-commit at gcc dot gnu.org
2022-05-09 23:32 ` [Bug c++/104225] [9/10 " cvs-commit at gcc dot gnu.org
2022-05-11 14:59 ` [Bug c++/104225] [9 " cvs-commit at gcc dot gnu.org
2022-05-11 15:05 ` ppalka 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).