Skip to content

Commit 8948fd9

Browse files
authored
[temp.mem.enum] Remove instantiation in example [temp.inst] (#7558)
The example is inconsistent with [temp.inst]p3. Since the implicit instantiation does not contribute to the point of [temp.mem.enum], the inconsistency can be resolved by omitting the instantiation.
1 parent dfdc64c commit 8948fd9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

source/templates.tex

-1
Original file line numberDiff line numberDiff line change
@@ -2654,7 +2654,6 @@
26542654
template<class T> struct A {
26552655
enum E : T;
26562656
};
2657-
A<int> a;
26582657
template<class T> enum A<T>::E : T { e1, e2 };
26592658
A<int>::E e = A<int>::e1;
26602659
\end{codeblock}

0 commit comments

Comments
 (0)