Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typedef with forward declared type as C++ template typename #1370

Open
fuhsnn opened this issue Jan 7, 2025 · 0 comments
Open

typedef with forward declared type as C++ template typename #1370

fuhsnn opened this issue Jan 7, 2025 · 0 comments

Comments

@fuhsnn
Copy link

fuhsnn commented Jan 7, 2025

This pattern should be valid C++98: https://godbolt.org/z/MaT9reT3Y

template<typename T>
struct S1 { T v; };

typedef S1<struct S2> S22;

struct S2 { int i; };

wpp386 rejects this with
test.cpp(4): Error! E197: col(21) type cannot be defined in this context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant