Skip to content

[cling] crash with .Class #10140

Open
Open
@ferdymercury

Description

@ferdymercury

Describe the bug

A crash is produced if you type .Class in the ROOT prompt.

===========================================================================
struct std::atomic<_Tp *>
SIZE: (NA) FILE: atomic LINE: -1
List of member variables --------------------------------------------------
root.exe: /opt/root_src/interpreter/llvm/src/tools/clang/include/clang/AST/TypeNodes.def:100: clang::TypeInfo clang::ASTContext::getTypeInfoImpl(const clang::Type*) const: Assertion `!T->isDependentType() && "should not see dependent types here"' failed.

Expected behavior

No crash.

Also, if you type .Class TTree it should only print TTree's class info, not all the list of classes. In analogy to .class TTree vs .class

To Reproduce

.Class
or .Class TTree

Setup

   ------------------------------------------------------------------
  | Welcome to ROOT 6.27/01                        https://root.cern |
  | (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Jan 12 2022, 10:17:19                 |
  | From heads/master@v6-25-01-2870-gdac9b6398d                      |
  | With c++ (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0                     |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |
   ------------------------------------------------------------------

Additional context

#10121

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions