view gcc/testsuite/g++.dg/template/crash87.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// Origin: PR c++/38357
// { dg-do compile }

class BUG
{
public:
 bool name() { return true; }
};

template <bool T>
struct BUG1_5
{

};

template <bool name>
class BUG2 : BUG
{
public:
 typedef BUG1_5<name> ptr; // { dg-error "convert" }
};

int main()
{
 BUG2<false> b;
 return 0;
}