File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 52305230void foo() {
52315231 xp++; // error: \tcode {X} is incomplete
52325232 arrp++; // error: incomplete type
5233- arrpp++; // OK, sizeof \tcode {UNKA*} is known
5233+ arrpp++; // OK, \tcode {sizeof( UNKA*) } is known
52345234}
52355235
52365236struct X { int i; }; // now \tcode {X} is a complete type
52375237int arr[10]; // now the type of \tcode {arr} is complete
52385238
52395239X x;
52405240void bar() {
5241- xp = &x; // OK; type is `` pointer to \tcode {X}''
5242- arrp = &arr; // OK; qualification conversion\iref {conv.qual }
5241+ xp = &x; // OK, type is `` pointer to \tcode {X}''
5242+ arrp = &arr; // OK, qualification conversion\iref {conv.qual }
52435243 xp++; // OK, \tcode {X} is complete
52445244 arrp++; // error: \tcode {UNKA} can't be completed
52455245}
You can’t perform that action at this time.
0 commit comments