Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[cling] definitions from mathcalls.h unexpectatly pollute namespace

Aperta
#20,700 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@devajithvs ci sta già lavorando.

Dal 12/12/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug in:Cling Small Bug Density
Check duplicate issues.
  • Checked for duplicates
Description

Dear developers,

names such as y0 or y1 cannot be used in an interactive ROOT session due to them being also used internally /usr/include/x86_64-linux-gnu/bits/mathcalls.h. mathcalls.h is probably included by math.h but I do not think, that this should make these variables unusable.

Best regards.

Reproducer
% root -l
root [0] double y1 = 0;
root [1] y1
ROOT_prompt_1:1:1: error: reference to 'y1' is ambiguous
y1
^
ROOT_prompt_0:1:8: note: candidate found by name lookup is '__cling_N50::y1'
double y1 = 0;
       ^
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:257:13: note: candidate found by name lookup is 'y1'
__MATHCALL (y1,, (_Mdouble_));
            ^
ROOT version
ROOT v6.36.06
Built for linuxx8664gcc on Nov 26 2025, 12:43:13
From tags/v6-36-06@v6-36-06
With c++ (Debian 15.2.0-9) 15.2.0
Binary directory: /usr/local/opt/root/bin
Installation method

Build from source

Operating system

Debian Sid

Additional context

No response

Lingua principale
C++
Stelle
3.3k
Fork
1.6k
Merge medio
2g 7h
PR unite (30g)
180

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di root-project/root

Tutte le issue di root-project/root

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.