view gcc/testsuite/g++.dg/template/error33.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

// PR c++/24791

template<int> struct A
{
    static int i;
    A() { ++i; }
};

template<int> int A<0>::i(0);	// { dg-error "template" "error" }
// { dg-message "note" "note" { target *-*-* } .-1 }

A<0> a;