Skip to content

Commit ba9d399

Browse files
authored
[dcl.ambig.res] Add \grammarterm for type-id in comment (#8709)
1 parent 9c5257c commit ba9d399

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

source/declarations.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2713,19 +2713,19 @@
27132713
\begin{codeblock}
27142714
template <class T> struct X {};
27152715
template <int N> struct Y {};
2716-
X<int()> a; // type-id
2716+
X<int()> a; // \grammarterm{type-id}
27172717
X<int(1)> b; // expression (ill-formed)
2718-
Y<int()> c; // type-id (ill-formed)
2718+
Y<int()> c; // \grammarterm{type-id} (ill-formed)
27192719
Y<int(1)> d; // expression
27202720

27212721
void foo(signed char a) {
2722-
sizeof(int()); // type-id (ill-formed)
2722+
sizeof(int()); // \grammarterm{type-id} (ill-formed)
27232723
sizeof(int(a)); // expression
2724-
sizeof(int(unsigned(a))); // type-id (ill-formed)
2724+
sizeof(int(unsigned(a))); // \grammarterm{type-id} (ill-formed)
27252725

2726-
(int())+1; // type-id (ill-formed)
2726+
(int())+1; // \grammarterm{type-id} (ill-formed)
27272727
(int(a))+1; // expression
2728-
(int(unsigned(a)))+1; // type-id (ill-formed)
2728+
(int(unsigned(a)))+1; // \grammarterm{type-id} (ill-formed)
27292729
}
27302730

27312731
typedef struct BB { int C[2]; } *B, C;

0 commit comments

Comments
 (0)