[Issue 12697] New: -inline ICE backend\el.c 802
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat May 3 06:25:13 PDT 2014
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 at puremagic.com
Reporter: temtaime at 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;
}
}
--
More information about the Digitalmars-d-bugs
mailing list