IC7.1 (win32) bug

IC7.1 (win32) bug

Sorry if posting to the wrong forum, unfortunately I did not find any other way to post this bug report.

template struct ET { friend operator & (ET v1, T e2) { return true; } };
enum ST { a = 0 };
struct A
{
	void moo(ET x = ET()) {} // if we comment this line, everything compiles
	A() { ET()&a; }
};
int main() { A a; }

IC7.1 complains about the unresolved external symbol:

test.obj : error LNK2019: unresolved external symbol "int __cdecl operator&(struct ET,enum ST)" (??I@YAHU?$ET@W4ST
@@@@W4ST@@@Z) referenced in function _main

Everything compiles if we remove the "...moo(..." line.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

This is still a bug in 8.0 beta.
Please report this to Premier Support, you'll find the details about submitting issue in the ReleaseNotes that is located at compiler70docs directory.

Thanks very much,
Jennifer

Login to leave a comment.