digitalmars.D.bugs - [Issue 12697] New: -inline ICE backend\el.c 802
- via Digitalmars-d-bugs (53/53) May 03 2014 https://issues.dlang.org/show_bug.cgi?id=12697
https://issues.dlang.org/show_bug.cgi?id=12697 Issue ID: 12697 Summary: -inline ICE backend\el.c 802 Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: critical Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: temtaime gmail.com Dustmited from 14k lines. Compile with -inline struct BinaryReader(Reader) { ref read(E)(E e) { auto info = `%s:%u`; readWriteVariable!true(e, E.stringof, e, info); } ref opBinary(string op: `>>`, E)(E e) { read!()(e); } void readWriteVariable(bool isRead, T, P)(T , string , P , string ) { if(isRead) enum defIdx = `default`; } } class GameHandler { private: mixin PacketManager; mixin PacketsHandlers; } struct NetReader { } template PacketManager() { public: alias PacketReader = BinaryReader!NetReader; struct SenderReader { ref opBinary(string op: `>>`, T)(T t) { *r >> t; } PacketReader *r; } SenderReader net() { return SenderReader(); } } struct AuthFail { } template PacketsHandlers() { package: void onAuthFail() { AuthFail data; net >> data; } } --
May 03 2014