Skip to content

Cling issue #21283

@musinsky

Description

@musinsky

Check duplicate issues.

  • Checked for duplicates

Description

#include <iostream>
#include <iomanip>
#include <format>

void a() {
  std::cout << "a: " << std::setw(3) << 1 << std::endl;
}
#include <iostream>
#include <iomanip>
#include <format>

void b() {
  std::cout << std::format("b: {:3}\n", 2);
}

Reproducer

$ root
ROOT Version: 6.39.01
Built for linuxx8664gcc on Feb 14 2026, 12:09:28
From heads/master@v6-39-01-1045-g6f083f6ae
root [0] gROOT->Time()
Real time 0:00:03.188480, CP time 0.050
root [1] .L a.C++
Info in <TUnixSystem::ACLiC>: creating shared library /home/musinsky/ROOT_issue/./a_C.so
Real time 0:00:04.558429, CP time 0.120
root [2] .L a.C++
Info in <ACLiC>: unmodified script has already been compiled and loaded
Info in <ACLiC>: it will be regenerated and reloaded!
Info in <TUnixSystem::ACLiC>: creating shared library /home/musinsky/ROOT_issue/./a_C.so
Real time 0:00:04.583053, CP time 0.010
$ root
ROOT Version: 6.39.01
Built for linuxx8664gcc on Feb 14 2026, 12:09:28
From heads/master@v6-39-01-1045-g6f083f6ae
root [0] gROOT->Time()
Real time 0:00:01.515612, CP time 0.030
root [1] .L b.C++
Info in <TUnixSystem::ACLiC>: creating shared library /home/musinsky/ROOT_issue/./b_C.so
Real time 0:00:09.177981, CP time 0.270          // !!! 2x longer time !!!
root [2] .L b.C++
Info in <ACLiC>: unmodified script has already been compiled and loaded
Info in <ACLiC>: it will be regenerated and reloaded!

 *** Break *** segmentation violation
  • 2x longer time ?
  • segmentation violation ?

Tested also on Alma 9 in current Alice environment (ROOT 6.36.04, GCC 14.2.0):

  • compilation time of a.C and b.C is approximately the same
  • same segmentation violation after the second (repeated) compilation of b.C

ROOT version

ROOT v6.39.01
Built for linuxx8664gcc on Feb 14 2026, 12:09:28
From heads/master@v6-39-01-1045-g6f083f6ae
With c++ (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7) std202002
Binary directory: /cern/root_master/bin

compile with CMAKE_CXX_STANDARD=20

Installation method

build from source

Operating system

Fedora 43

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions