public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/97533] New: ICE encountering operator() within lambda expression within templated struct
@ 2020-10-22 18:47 harry at mccleave dot ca
  2020-10-23  6:06 ` [Bug c++/97533] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: harry at mccleave dot ca @ 2020-10-22 18:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97533
           Summary: ICE encountering operator() within lambda expression
                    within templated struct
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: harry at mccleave dot ca
  Target Milestone: ---

gcc version: 10.2
options: /std:c++17
Issue: internal compiler error
godbolt link: https://godbolt.org/z/W4GGnE
reduced code that replicates:
template<typename T>
struct Blah
{
  void operator()(int& a,int& b) {
    [this](auto&... args) {
      (operator()(args),...);
    }(a, b);
  }
};

int main() {
  Blah<void> proc;
  int a, b;
  proc(a, b);
}

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

end of thread, other threads:[~2021-04-27 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-22 18:47 [Bug c++/97533] New: ICE encountering operator() within lambda expression within templated struct harry at mccleave dot ca
2020-10-23  6:06 ` [Bug c++/97533] " rguenth at gcc dot gnu.org
2020-10-26 16:23 ` mpolacek at gcc dot gnu.org
2021-04-27 16:26 ` mpolacek 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).