Skip to content

[cfe] namespace confusion after wrong constructor declaration #46891

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

Open
eernstg opened this issue Aug 12, 2021 · 0 comments
Open

[cfe] namespace confusion after wrong constructor declaration #46891

eernstg opened this issue Aug 12, 2021 · 0 comments
Assignees
Labels
legacy-area-front-end Legacy: Use area-dart-model instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@eernstg
Copy link
Member

eernstg commented Aug 12, 2021

Consider the test co19/LanguageFeatures/Constructor-tear-offs/unnamed_constructor_A03_t07, line 46.

At this point, the class D declares a member named D, that is, a constructor. However, the test run reports the following error:

- Unexpected error at line 46, column 3: 'D' is already declared in this scope.

but there is no other declaration in the body of D with that name.

@eernstg eernstg added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) legacy-area-front-end Legacy: Use area-dart-model instead. labels Aug 12, 2021
@johnniwinther johnniwinther added the P2 A bug or feature request we're likely to work on label Aug 12, 2021
@johnniwinther johnniwinther self-assigned this Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy-area-front-end Legacy: Use area-dart-model instead. P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants