[cfe-users] Removing or obfuscating RTTI type name strings

2021-08-27 Thread Andy Gibbs via cfe-users
Hi there, I'm hitting a rather difficult problem. I have to compile with RTTI data structures generated because, even though I am not using dynamic_cast or typeid in my application code, I am linking and using a library that does use dynamic_cast. Therefore my code will crash if I compile wit

Re: [cfe-users] My compiler crashes .... but the online godbolt one doesn't ?!

2018-12-12 Thread Andy Gibbs via cfe-users
On 10 December 2018 18:17, David Blaikie wrote: Possible that the online one isn't built with assertions enabled (you could test this with other known crashers to see if they reproduce on godbolt with assertion crash dumps or only with raw segfaults)? If that's the case,t hen it's possible that

[cfe-users] My compiler crashes .... but the online godbolt one doesn't ?!

2018-12-08 Thread Andy Gibbs via cfe-users
Hi, Crazy question, but would someone kind be able to help me a little here. I have a clang 4.0 installation on my linux laptop, which crashes when compiling this code fragment: template constexpr auto fn1() { return X; } template auto fn2() { return ([]() { static con

[cfe-users] How to detect trait keywords that have reverted to identifiers

2016-08-31 Thread Andy Gibbs via cfe-users
Hi, I'm having a problem that maybe someone here knows a good solution to. I have headers that use the clang type-trait built-ins, for example __is_void. However, using these headers will throw spurious errors if certain system headers are included before them. Here is a minimal bit of code t

[cfe-users] How to detect trait keywords that have reverted to identifiers

2016-08-31 Thread Andy Gibbs via cfe-users
Hi, I'm having a problem that maybe someone here knows a good solution to. I have headers that use the clang type-trait built-ins, for example __is_void. However, using these headers will throw spurious errors if certain system headers are included before them. Here is a minimal bit of code t