[cfe-commits] [PATCH] PR8800 Don't require an implicit conversion to reference-to-class to have a complete class type

Richard Smith richard at metafoo.co.uk
Tue Jul 12 14:56:03 PDT 2011


Hi,

The attached patch fixes PR8800. When building a conversion to A& via a
class' operator A&(), we were requiring A to be complete. There seems to
be no normative rule in the standard which requires this, but C++11 FDIS
[basic.def.odr]p4 bullet 6 says "A class type T must be complete if [...]
an expression [...] is converted to type pointer to T or reference to T
using an implicit conversion" within a note.

Assuming that note is incorrect, is this patch OK to check in?

Thanks,
Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr8800.diff
Type: text/x-patch
Size: 1793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110712/e5dab2c1/attachment.bin>


More information about the cfe-commits mailing list