dxx-rebirth/similar
Kp a64bce8e26 Add workaround for clang crash compiling net_udp.cpp
Compiling net_udp.cpp with clang-3.4 crashes the compiler when parsing
a decltype that refers into the class currently being compiled.  Parsing
a decltype that refers to a parent class works.  Rearrange the decltype
usage to avoid referencing the current class.  This makes the code
harder to read and less flexible, but prevents clang from crashing.

Clang self trace:

1.      <eof> parser at end of file
2.      similar/main/net_udp.cpp:317:8: instantiating function definition 'operator()'
3.      similar/main/net_udp.cpp:317:8: LLVM IR generation of declaration '(anonymous namespace)::sockaddr_dispatch_t<(anonymous namespace)::dxx_recvfrom_t>::operator()'
4.      similar/main/net_udp.cpp:317:8: Mangling declaration '(anonymous namespace)::sockaddr_dispatch_t<(anonymous namespace)::dxx_recvfrom_t>::operator()'

[Update: also affects OS X clang v6, as reported by btb: https://github.com/dxx-rebirth/dxx-rebirth/pull/35#issuecomment-73350066]
2015-02-07 20:28:09 +00:00
..
2d Capture range_for by-value temporaries as const 2015-02-05 03:03:49 +00:00
3d Move robot_points onto stack 2015-02-05 03:03:50 +00:00
arch Merge pull #34 into unification/master 2015-02-07 04:43:00 +00:00
editor Pass end-of-list for ignore_obj_list 2015-02-05 03:03:51 +00:00
main Add workaround for clang crash compiling net_udp.cpp 2015-02-07 20:28:09 +00:00
mem Fix size truncation in mem_malloc 2015-01-29 04:27:35 +00:00
misc Convert frequently used casts to C++ casts 2015-02-05 03:03:49 +00:00