Skip to content

[cling] ROOT crash with unnamed macro #15888

@ferdymercury

Description

@ferdymercury

Check duplicate issues.

  • Checked for duplicates

Description

A (cumbersome) macro file shown below gives an error in ROOT 6.30.06, but crashes with 6.33.01

6.30.06

Processing merged.C...
In file included from input_line_8:1:
/.../merged.C:4:1: error: expected unqualified-id
{

6.33.01

#9 0x00007eea14d80b1e in clang::Sema::PushCompoundScope(bool) [clone .cold] () from /home/user/build/build-root-Desktop-Debug/lib/libCling.so

Reproducer

root -l merged.C

#if defined(FUNCTION_INTERFACE)
void merged()
#endif
{
    int a=0;
}

ROOT version

6.30 vs 6.33.01

Installation method

Binary

Operating system

Ubuntu 22

Additional context

https://root-forum.cern.ch/t/how-to-unify-named-and-anonymous-scripts/59694/3
https://its.cern.ch/jira/browse/ROOT-5487

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions