Skip to content

Commit 26f6a1f

Browse files
jensmaurertkoeppe
authored andcommitted
[dcl.typedef] Add explanation for lookup failure in example
1 parent d0cb462 commit 26f6a1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/declarations.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,8 @@
621621
using handler_t = void (*)(int);
622622
extern handler_t ignore;
623623
extern void (*ignore)(int); // redeclare \tcode{ignore}
624-
using cell = pair<void*, cell*>; // error
624+
template<class T> struct P { };
625+
using cell = P<cell*>; // error: \tcode{cell} not found\iref{basic.scope.pdecl}
625626
\end{codeblock}
626627
\end{example}
627628
The \grammarterm{defining-type-specifier-seq}

0 commit comments

Comments
 (0)