2025-06-20 05:20 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005781Spring engineGeneralpublic2018-01-24 20:14
Reportercleanrock 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
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
Attached Files

-Relationships
+Relationships

-Notes

~0018436

abma (administrator)

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

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

~0018438

cleanrock (reporter)

My archlinux clang is 5.0.0.

~0018439

cleanrock (reporter)

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
...
+Notes

-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
+Issue History