On Fri, Jun 8, 2012 at 4:13 PM, Michael Spencer <[email protected]> wrote: > While this code is valid C++98, it is not valid C++11. The problem can be > reduced to: > > class MDNode; > > class DIType { > operator MDNode*() const {return 0;} > }; > > class WeakVH { > WeakVH(MDNode*) {} > }; > > int main() { > DIType di; > std::pair<void*, WeakVH> p(std::make_pair((void*)0, di))); > } > > This was not detected by any of the bots we have because they either compile > C++98 with libstdc++ (which allows it), or C++11 with libc++ (which > incorrectly > allows it). I ran into the problem when compiling with VS 2012 RC.
DId you file a bug against libc++? Please try to use a consistent indentation style; otherwise, the patch looks fine. -Eli _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
