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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org
   Target Milestone|---                         |8.4
            Summary|internal compiler error: in |[8/9/10 Regression]
                   |lookup_template_class_1     |internal compiler error: in
                   |                            |lookup_template_class_1

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The #c0 testcase started to ICE with r259043, before it has been rejected:
pr92654.C: In instantiation of ‘am() [with <template-parameter-1-1> =
p]::<lambda(auto:1)> [with auto:1 = a::c<int, 0>]’:
pr92654.C:13:4:   required from ‘void ad(ab, a::e<i, ac ...>) [with ab = am()
[with <template-parameter-1-1> = p]::<lambda(auto:1)>; i = int; i ...ac = {0,
1}]’
pr92654.C:19:4:   required from ‘void k(ab) [with auto j = 2; ab = am() [with
<template-parameter-1-1> = p]::<lambda(auto:1)>]’
pr92654.C:24:12:   required from ‘void ah(ab) [with ag = n; ab = am() [with
<template-parameter-1-1> = p]::<lambda(auto:1)>]’
pr92654.C:32:7:   required from ‘void am() [with <template-parameter-1-1> = p]’
pr92654.C:42:18:   required from here
pr92654.C:35:4: error: could not convert template argument ‘b’ from ‘const
a::c<int, 0>’ to ‘n’
    if constexpr (o<b>::aq)
    ^~
pr92654.C: In instantiation of ‘am() [with <template-parameter-1-1> =
p]::<lambda(auto:1)> [with auto:1 = a::c<int, 1>]’:
pr92654.C:13:4:   required from ‘void ad(ab, a::e<i, ac ...>) [with ab = am()
[with <template-parameter-1-1> = p]::<lambda(auto:1)>; i = int; i ...ac = {0,
1}]’
pr92654.C:19:4:   required from ‘void k(ab) [with auto j = 2; ab = am() [with
<template-parameter-1-1> = p]::<lambda(auto:1)>]’
pr92654.C:24:12:   required from ‘void ah(ab) [with ag = n; ab = am() [with
<template-parameter-1-1> = p]::<lambda(auto:1)>]’
pr92654.C:32:7:   required from ‘void am() [with <template-parameter-1-1> = p]’
pr92654.C:42:18:   required from here
pr92654.C:35:4: error: could not convert template argument ‘b’ from ‘const
a::c<int, 1>’ to ‘n’

Reply via email to