It looks like it is a clang bug! See icecream answer here:
https://github.com/icecc/icecream/issues/514
Eric
Le 20-01-22 à 09:20, Eric Chamberland via ccache a écrit :
Hi,
We have a simple but annoying bug with ccache (3.7.1) + icecream +
clang 7.0.
This file:
=
#define U
Hi,
We have a simple but annoying bug with ccache (3.7.1) + icecream + clang
7.0.
This file:
=
#define UsedMacro double
double foo();
double foo() {
UsedMacro var = 0;
return var;
}
=
Compiles without warnings if compiled with bare clang 7.0 like this: