public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/113544] New: [14 Regression] bogus incomplete type error with dependent data member in local class in generic lambda since r14-278
@ 2024-01-22 16:46 ppalka at gcc dot gnu.org
  2024-01-22 16:48 ` [Bug c++/113544] " ppalka at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ppalka at gcc dot gnu.org @ 2024-01-22 16:46 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113544
           Summary: [14 Regression] bogus incomplete type error with
                    dependent data member in local class in generic lambda
                    since r14-278
           Product: gcc
           Version: 14.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: ---

template<class T>
void f() {
  [](auto parm) {
    struct type {
      decltype(parm) x;
    };
  };
}

template void f<int>();

<stdin>: In instantiation of ‘struct f<int>()::<lambda(auto:1)>::type’:
<stdin>:6:5:   required from ‘void f() [with T = int]’
<stdin>:10:22:   required from here
<stdin>:5:22: error: ‘f()::<lambda(auto:1)>::type::x’ has incomplete type
<stdin>:5:22: error: invalid use of dependent type ‘decltype (parm)’

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

end of thread, other threads:[~2024-01-29 17:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-22 16:46 [Bug c++/113544] New: [14 Regression] bogus incomplete type error with dependent data member in local class in generic lambda since r14-278 ppalka at gcc dot gnu.org
2024-01-22 16:48 ` [Bug c++/113544] " ppalka at gcc dot gnu.org
2024-01-22 17:08 ` jakub at gcc dot gnu.org
2024-01-23 14:41 ` ppalka at gcc dot gnu.org
2024-01-29 17:40 ` cvs-commit at gcc dot gnu.org
2024-01-29 17:41 ` jason 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).