[Scummvm-tracker] [ScummVM] #10154: MSVC 2015 - SCI does not build, STATIC_ASSERT broken?

Colin Snover trac at scummvm.org
Wed Nov 8 07:26:45 CET 2017


#10154: MSVC 2015 - SCI does not build, STATIC_ASSERT broken?
-----------------------+-------------------------
  Reporter:  quietust  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  blocker   |  Component:  Engine: SCI
Resolution:            |   Keywords:
      Game:            |
-----------------------+-------------------------
Changes (by csnover):

 * priority:  normal => blocker


Comment:

 At first glance, this ''seems'' like an MSVC bug where the symbols are
 getting optimised in a way that is confusing the linker. Does this problem
 also occur in Visual C++ 2017? If so, I think we could probably change the
 macro to use the real `static_assert` (which, actually, might not be a bad
 idea in any case) which will hopefully solve the problem since then that
 symbol would be a string literal for the `message` parameter of
 `static_assert`, and the compiler will know how to deal with its own
 static assertions, and so much less likely to get screwed up.

--
Ticket URL: <https://bugs.scummvm.org/ticket/10154#comment:7>
ScummVM <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list