repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr85437-4.C
blob
e69607de51a9b7841c7f28f02a5a67a6c70f366c
1
// PR c++/85437
2
// { dg-do compile { target c++11 } }
3
4
struct A { };
5
struct B { int x; };
6
struct C : A, B {};
7
constexpr int C::*pci = &B::x;
8
constexpr int A::*pai = static_cast<int A::*>(pci); // { dg-bogus "not a constant expression" }