public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106880] New: [12/13 Regression] "error: use of deleted function" printed twice
@ 2022-09-07 18:01 redi at gcc dot gnu.org
  2022-09-07 18:04 ` [Bug c++/106880] " mpolacek at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-09-07 18:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106880
           Summary: [12/13 Regression] "error: use of deleted function"
                    printed twice
           Product: gcc
           Version: 12.2.1
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
                CC: ppalka at gcc dot gnu.org
  Target Milestone: ---

Since r12-295 we print the error twice for this code:

namespace x {
void foo() = delete;
}

template<typename T>
void f(T t)
{
  using x::foo;
  foo(t);
}

void g()
{
  f(1);
}


dup.C: In instantiation of 'void f(T) [with T = int]':
dup.C:14:4:   required from here
dup.C:9:6: error: use of deleted function 'void x::foo()'
    9 |   foo(t);
      |   ~~~^~~
dup.C:2:6: note: declared here
    2 | void foo() = delete;
      |      ^~~
dup.C:9:6: error: use of deleted function 'void x::foo()'
    9 |   foo(t);
      |   ~~~^~~
dup.C:2:6: note: declared here
    2 | void foo() = delete;
      |      ^~~

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

* [Bug c++/106880] [12/13 Regression] "error: use of deleted function" printed twice
  2022-09-07 18:01 [Bug c++/106880] New: [12/13 Regression] "error: use of deleted function" printed twice redi at gcc dot gnu.org
@ 2022-09-07 18:04 ` mpolacek at gcc dot gnu.org
  2022-09-07 18:13 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2022-09-07 18:04 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |mpolacek at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-09-07

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

* [Bug c++/106880] [12/13 Regression] "error: use of deleted function" printed twice
  2022-09-07 18:01 [Bug c++/106880] New: [12/13 Regression] "error: use of deleted function" printed twice redi at gcc dot gnu.org
  2022-09-07 18:04 ` [Bug c++/106880] " mpolacek at gcc dot gnu.org
@ 2022-09-07 18:13 ` pinskia at gcc dot gnu.org
  2022-09-09 13:18 ` ppalka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-09-07 18:13 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.3

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

* [Bug c++/106880] [12/13 Regression] "error: use of deleted function" printed twice
  2022-09-07 18:01 [Bug c++/106880] New: [12/13 Regression] "error: use of deleted function" printed twice redi at gcc dot gnu.org
  2022-09-07 18:04 ` [Bug c++/106880] " mpolacek at gcc dot gnu.org
  2022-09-07 18:13 ` pinskia at gcc dot gnu.org
@ 2022-09-09 13:18 ` ppalka at gcc dot gnu.org
  2022-10-19  5:55 ` rguenth at gcc dot gnu.org
  2023-05-08 12:25 ` [Bug c++/106880] [12/13/14 " rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-09-09 13:18 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |ppalka at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

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

* [Bug c++/106880] [12/13 Regression] "error: use of deleted function" printed twice
  2022-09-07 18:01 [Bug c++/106880] New: [12/13 Regression] "error: use of deleted function" printed twice redi at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-09-09 13:18 ` ppalka at gcc dot gnu.org
@ 2022-10-19  5:55 ` rguenth at gcc dot gnu.org
  2023-05-08 12:25 ` [Bug c++/106880] [12/13/14 " rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-19  5:55 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

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

* [Bug c++/106880] [12/13/14 Regression] "error: use of deleted function" printed twice
  2022-09-07 18:01 [Bug c++/106880] New: [12/13 Regression] "error: use of deleted function" printed twice redi at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2022-10-19  5:55 ` rguenth at gcc dot gnu.org
@ 2023-05-08 12:25 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-05-08 12:25 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|12.3                        |12.4

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 12.3 is being released, retargeting bugs to GCC 12.4.

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

end of thread, other threads:[~2023-05-08 12:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-07 18:01 [Bug c++/106880] New: [12/13 Regression] "error: use of deleted function" printed twice redi at gcc dot gnu.org
2022-09-07 18:04 ` [Bug c++/106880] " mpolacek at gcc dot gnu.org
2022-09-07 18:13 ` pinskia at gcc dot gnu.org
2022-09-09 13:18 ` ppalka at gcc dot gnu.org
2022-10-19  5:55 ` rguenth at gcc dot gnu.org
2023-05-08 12:25 ` [Bug c++/106880] [12/13/14 " rguenth 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).