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
c: fix ICE when forming composite type for two structures / unions [PR117548]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nsdmi-template9.C
blob
0cfbb9044247e2a61d592688da494f3c2fb0ad89
1
// PR c++/60999
2
// { dg-do compile { target c++11 } }
3
4
template <typename A>
5
struct foo
6
{
7
};
8
9
template<>
10
struct foo<int>
11
{
12
static constexpr int code = 42;
13
unsigned int bar = static_cast<unsigned int>(code);
14
};
15
16
foo<int> a;