LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 21973 - [fuzz] Assertion `!T->isDependentType() && "should not see dependent types here"' failed.
Summary: [fuzz] Assertion `!T->isDependentType() && "should not see dependent types he...
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: -New Bugs (show other bugs)
Version: trunk
Hardware: PC Linux
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks: 23057
  Show dependency tree
 
Reported: 2014-12-18 16:25 PST by Sami Liedes
Modified: 2016-10-21 18:25 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sami Liedes 2014-12-18 16:25:56 PST
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: /home/sliedes/projects/llvm/llvm.src/tools/clang/include/clang/AST/TypeNodes.def:86: clang::TypeInfo clang::ASTContext::getTypeInfoImpl(const clang::Type*) const: Assertion `!T->isDependentType() && "should not see dependent types here"' failed.

Test case:

--------------------------------------------------
struct {__typeof Di r} S[1
--------------------------------------------------
Comment 1 Reid Kleckner 2016-02-08 15:56:06 PST
*** Bug 26512 has been marked as a duplicate of this bug. ***
Comment 2 Reid Kleckner 2016-10-21 18:25:11 PDT
Looks fixed.