File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 27132713\begin {codeblock }
27142714template <class T> struct X {};
27152715template <int N> struct Y {};
2716- X<int()> a; // type-id
2716+ X<int()> a; // \grammarterm { type-id}
27172717X<int(1)> b; // expression (ill-formed)
2718- Y<int()> c; // type-id (ill-formed)
2718+ Y<int()> c; // \grammarterm { type-id} (ill-formed)
27192719Y<int(1)> d; // expression
27202720
27212721void 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
27312731typedef struct BB { int C[2]; } *B, C;
You can’t perform that action at this time.
0 commit comments