| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
|---|---|---|---|---|---|---|---|---|---|
| 0005781 | Spring engine | General | public | 2017-09-24 07:32 | 2018-01-24 20:14 | ||||
| Reporter | cleanrock | ||||||||
| Assigned To | Kloot | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | resolved | Resolution | fixed | ||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0005781: clang 5.0 compile error | ||||||||
| Description | clang seems more strict than gcc with constexpr, reinterpret_cast is not allowed with constexpr. My quick fix: Change constexpr to const on qcriProcName assignment line in rts/Rendering/GL/myGL.cpp. | ||||||||
| Tags | No tags attached. | ||||||||
| Checked infolog.txt for Errors | |||||||||
| Attached Files |
| ||||||||
Notes |
|
|
abma (administrator) 2017-09-24 12:49 |
FYI: an (very likely) older clang version is able to handle that: http://buildbot.springrts.com/builders/full-clang |
|
cleanrock (reporter) 2017-09-24 16:43 |
My archlinux clang is 5.0.0. |
|
cleanrock (reporter) 2017-09-24 16:53 |
If we can trust http://en.cppreference.com/w/cpp/language/constant_expression it looks like clang 5 is correct: A core constant expression is any expression whose evaluation would not evaluate any one of the following: ... 15. reinterpret_cast ... |
Issue History |
|||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2017-09-24 07:32 | cleanrock | New Issue | |
| 2017-09-24 12:49 | abma | Note Added: 0018436 | |
| 2017-09-24 16:43 | cleanrock | Note Added: 0018438 | |
| 2017-09-24 16:53 | cleanrock | Note Added: 0018439 | |
| 2017-09-24 18:30 | abma | Summary | fix clang build => clang 5.0 compile error |
| 2018-01-24 20:14 | Kloot | Assigned To | => Kloot |
| 2018-01-24 20:14 | Kloot | Status | new => resolved |
| 2018-01-24 20:14 | Kloot | Resolution | open => fixed |


