view gcc/testsuite/g++.dg/cpp2a/nontype-class30.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

// PR c++/91754 - Fix template arguments comparison with class NTTP.
// { dg-do compile { target c++2a } }

struct S {};

template<S s>
struct T {
  T();
};

template<S s>
T<s>::T() {} 

S s;
T<s> t;