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

[fuzz] Assertion `Ctx->isFileContext() && "We should have been looking only at file context here already."' failed. #22344

Closed
llvmbot opened this issue Dec 19, 2014 · 4 comments
Labels
bugzilla Issues migrated from bugzilla clang:frontend Language frontend issues, e.g. anything involving "Sema" crash-on-invalid

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Dec 19, 2014

Bugzilla Link 21970
Version trunk
OS Linux
Blocks #23431
Reporter LLVM Bugzilla Contributor

Extended Description

Fuzzing discovered that the test case below, when given as input to

clang -fno-crash-diagnostics -std=c++11 -xc++ -c -emit-llvm

causes this assertion failure:

clang-3.6: tools/clang/lib/Sema/SemaLookup.cpp:1140: bool clang::Sema::CppLookupName(clang::LookupResult&, clang::Scope*): Assertion `Ctx->isFileContext() && "We should have been looking only at file context here already."' failed.

Test case:


class { template <typename I, I::(((; namespace { o

@kcc
Copy link
Contributor

kcc commented Nov 26, 2021

mentioned in issue #23431

@kcc kcc mentioned this issue Mar 28, 2015
@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
@AaronBallman AaronBallman added the worksforme Resolved as "works for me" label Jun 12, 2023
@AaronBallman
Copy link
Collaborator

I cannot reproduce this issue, so closing as works for me.

@AaronBallman AaronBallman closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2023
@EugeneZelenko EugeneZelenko added clang:frontend Language frontend issues, e.g. anything involving "Sema" and removed clang Clang issues not falling into any other category labels Jun 12, 2023
@llvmbot
Copy link
Collaborator Author

llvmbot commented Jun 12, 2023

@llvm/issue-subscribers-clang-frontend

@Endilll
Copy link
Contributor

Endilll commented Jun 17, 2023

Fixed in Clang 3.8: https://godbolt.org/z/heeTe6Kbd

@Endilll Endilll closed this as completed Jun 17, 2023
@Endilll Endilll added crash-on-invalid and removed worksforme Resolved as "works for me" labels Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:frontend Language frontend issues, e.g. anything involving "Sema" crash-on-invalid
Projects
None yet
Development

No branches or pull requests

5 participants