[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

Sebastian Redl sebastian.redl at getdesigned.at
Mon Feb 2 13:21:47 PST 2009


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?

Sebastian



More information about the cfe-commits mailing list