<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I'm far from a c++ language lawyer. I decided, in my spare time, to
work on some involved language related clang bugs to reverse that
situation.<br>
<br>
I picked this one
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a href="http://llvm.org/bugs/show_bug.cgi?id=8539">http://llvm.org/bugs/show_bug.cgi?id=8539</a>
.<br>
<br>
I've been trying to understand the rules surrounding this bug, which
interestingly enough used to cause g++ to crash and still causes
clang as well as the sun compiler to crash. <br>
<br>
Here is an interesting pair of test cases I came up with. <br>
<br>
5.cpp gets the same result on at least 4 compilers. It compiles
correctly, and prints B(1)<br>
<br>
6.cpp does not compile on clang++ or g++.<br>
<br>
This seems illogical to me. It does not call the copy constructor in
5.cpp but in 6.cpp it tails<br>
to compile because it can't find a valid copy constructor.<br>
<br>
I have a number of other related test cases. I want to make a fix
that really fixes this general class of issues and not just make the
crash go away for that one test case.<br>
<br>
On other compilers, both 5.cpp and 6.cpp get the same result.<br>
<br>
Tia.<br>
<br>
Reed<br>
</body>
</html>