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

            Bug ID: 108069
           Summary: Cant expand multiple parameters packs when used with a
                    concept prefix when used inside a variadic templated
                    lambda
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: calebxyz at gmail dot com
  Target Milestone: ---

When using concepts in a variadic templated lambda, G++ cannot expand a concept
prefix leading to misleading errors, while almost the same code without
concepts works fine. 
Clang compiles the concept code without any errors. 


Link to both examples of code 
get_nth1 - uses concepts and doesn't work. 
get_nth2 - uses void* and compiles fine 

https://godbolt.org/z/4sa7TMeKa

Reply via email to