[cfe-commits] r63525 - in /cfe/trunk: include/clang/AST/Expr.h lib/Sema/Sema.h lib/Sema/SemaDeclCXX.cpp lib/Sema/SemaInit.cpp test/SemaCXX/dcl_init_aggr.cpp

Douglas Gregor dgregor at apple.com
Mon Feb 2 13:26:45 PST 2009


On Feb 2, 2009, at 1:21 PM, Sebastian Redl wrote:

> Douglas Gregor wrote:
>> Author: dgregor
>> Date: Mon Feb  2 11:43:21 2009
>> New Revision: 63525
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=63525&view=rev
>> Log:
>> Check value-initializations that occur when an initializer list
>> provides too few elements.
>>
>>
>> +
>> +  if (Type->isReferenceType()) {
>> +    // C++ [dcl.init]p5:
>> +    //   [...] A program that calls for default-initialization or
>> +    //   value-initialization of an entity of reference type is
>> +    //   ill-formed. [...]
>> +  }
>> +
>>
>
> Is it intentional that there is neither code nor a FIXME here?

Oops! Good eye. I'll fix very soon.

	- Doug



More information about the cfe-commits mailing list