<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/84049>84049</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
SLPVectorizer.cpp fails to build with gcc 9 on `error: declaration of 'llvm::TargetTransformInfo* llvm::slpvectorizer::BoUpSLP::TTI' changes meaning of 'TTI'`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
build-problem,
llvm:transforms
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
```
/build/source/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:3617:24: error: declaration of 'llvm::TargetTransformInfo* llvm::slpvectorizer::BoUpSLP::TTI' changes meaning of 'TTI' [-fpermissive]
3617 | TargetTransformInfo *TTI;
| ^~~
In file included from /build/source/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:48:
/build/source/llvm/include/llvm/Analysis/TargetTransformInfo.h:206:29: note: 'TTI' declared here as 'typedef class llvm::TargetTransformInfo llvm::TTI'
206 | typedef TargetTransformInfo TTI;
| ^~~
```
log: https://llvm-jenkins.debian.net/job/llvm-toolchain-focal-binaries/architecture=amd64,distribution=focal,label=amd64/846/display/redirect
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVMFu4zYQ_ZrRhbBBkZJsHXRQ4goIsIcFNu2dpEYSU4oUSCqFe9hvL6gocYoazaWHGoZoc4bzZt57oghBjxaxgfIByksm1jg534SrecUQPWbS9dcGKrp_6QVouz9ZJ1dtemBdcKtXCKwz5nVOi5bAumcvbBicnwOw7jdU0Xn9Z8r68e37x19_VMsCvOVVfgLesgJ4S9B759OPHpURXkTtLHEDAXbaEHgLvH0WfsT4AfJkBwesJbeEYJbXD5i3rQf36_Lj2_e9wPMTsBNRk7AjBjKjsNqOO84ehPLhMCzoZx2CfkUoL2_Dk9QvgdMjIeROIwTYVp4_7OnbJ6VD-cvPn2-bT5YM2iDRVpm1x54M3s3kv6W1OKdZv9Jr7-C20VphrkEnhDvTHaekFK3Ss04yWRcxrTfe3oTDnkzokYiQQvG6YI8DUUaEQP5VyM_RreA7jYxWG43vte6d_ZL4u3Y2bkwjTDEuISGzbqfj8IL2d23DsUephT1ajMC6Fyff49E5oyah7WFwSpiD1FZ4jYk84dWkI6q4egR-EXNfFcAeex2i13JNvgZ-2Y4BezRCormldeeiAtb1OixGXIF1HnvtUcWsb3hf81pk2OQnWldVzliVTY0o86E-5UxIfqZVXuZlJXlxLlDRMuc5z3TDKCsop2V-KnlRHU9VQRnKs5JcIpUSCoqz0OaYJjs6P2Y6hBWbc0GLOtsaDNtdwdhmpsPinTQ4A2PAHoGxXbj4yaQsXSy-2biS6xigoEaHGG4YUUeDzT_8SwahTSDRkQ2L_KHjREalSE2cJVDR_809ARXNVm-av7tn1HFa5VG5-dM7nFhYvHtBlWy0sRs2rWlR_xUAAP__-VXAhg">