public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96097] New: ICE in dependent_type_p, at cp/pt.c:26326
@ 2020-07-07 16:21 bruck.michael at gmail dot com
  2020-07-07 16:25 ` [Bug c++/96097] " bruck.michael at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bruck.michael at gmail dot com @ 2020-07-07 16:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96097
           Summary: ICE in dependent_type_p, at cp/pt.c:26326
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bruck.michael at gmail dot com
  Target Milestone: ---

https://gcc.godbolt.org/z/WVUAy5

Same error location as PR95931, but very different test case with valid code
(probably).

<source>: In function 'void test()':
<source>:17:22: internal compiler error: in dependent_type_p, at cp/pt.c:26343
   17 |     func<Y<X, 0>, Y>();
      |                      ^

Fails with -std=c++17 at least since gcc5.1

---
template <
    typename A,
    template <typename T, typename T::typeX> typename TA>
auto func()
{
    return TA<typename A::typeY, 0>{};
}

struct X { using typeX = int; };

template <typename T, int>
// template <typename T, typename T::typeX>  // works
struct Y { using typeY = T; };

void test()
{
    func<Y<X, 0>, Y>();
}
---

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

end of thread, other threads:[~2020-10-29 15:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07 16:21 [Bug c++/96097] New: ICE in dependent_type_p, at cp/pt.c:26326 bruck.michael at gmail dot com
2020-07-07 16:25 ` [Bug c++/96097] " bruck.michael at gmail dot com
2020-07-08  7:27 ` marxin at gcc dot gnu.org
2020-07-08  8:11 ` haoxintu at gmail dot com
2020-07-08 19:04 ` mpolacek at gcc dot gnu.org
2020-07-08 23:40 ` bruck.michael at gmail dot com
2020-10-29 15:10 ` mpolacek at gcc dot gnu.org
2020-10-29 15:12 ` mpolacek at gcc dot gnu.org
2020-10-29 15:17 ` 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).