Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/template/nontype20.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 // PR c++/48003 | |
2 // { dg-options "-fpermissive -w" } | |
3 // Test that we allow integer overflow in constant exprs with -fpermissive | |
4 | |
5 template<int N> | |
6 struct test | |
7 { | |
8 typedef test<N - 1> prior; | |
9 }; | |
10 | |
11 test<-2147483647-1> f; |