Open xmh0511 opened 9 months ago
Full name of submitter (unless configured in github; will be published with the issue): Jim X
[temp.pre] p2 says
The declaration in a template-declaration (if any) shall declare or define a function, a class, or a variable, or
The declaration in a template-declaration (if any) shall
declare or define a function, a class, or a variable, or
Consider this case
template<class T> typedef struct C F;
This example is rejected by implementations. However, the declaration in the template-declaration does declare the class C anyway.
C
We should be more elaborate about the declaration.
CWG2862
Full name of submitter (unless configured in github; will be published with the issue): Jim X
[temp.pre] p2 says
Consider this case
This example is rejected by implementations. However, the declaration in the template-declaration does declare the class
C
anyway.Suggested Resolution
We should be more elaborate about the declaration.