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

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).