Skip to content

throw() doesn't work in Cling on Windows x64 #17557

Open
@bellenot

Description

@bellenot

Check duplicate issues.

  • Checked for duplicates

Description

As discovered in #17536 , throw() makes root silently crash on Windows x64

Reproducer

C:\root-dev\build\x64\debug>root -l
root [0] void fun(){throw std::runtime_error("");}
root [1] fun()

C:\root-dev\build\x64\debug>

But works fine on x86:

C:\root-dev\build\x86\nowinrtdebug\debug>root -l
root [0] void fun(){throw std::runtime_error("const std::vector<std::string> & overload");}
root [1] fun()
Error in <TRint::HandleTermInput()>: std::runtime_error caught: const std::vector<std::string> & overload
root [2]

ROOT version

6.35.01 but most probably all versions

Installation method

built from source

Operating system

Windows (x64)

Additional context

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions