View Issue Details

IDProjectCategoryView StatusLast Update
0005781Spring engineGeneralpublic2018-01-24 20:14
Reportercleanrock Assigned ToKloot  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0005781: clang 5.0 compile error
Descriptionclang 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.
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

abma

2017-09-24 12:49

administrator   ~0018436

FYI:
an (very likely) older clang version is able to handle that:

http://buildbot.springrts.com/builders/full-clang

cleanrock

2017-09-24 16:43

reporter   ~0018438

My archlinux clang is 5.0.0.

cleanrock

2017-09-24 16:53

reporter   ~0018439

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