[cfe-commits] r157955 - in /cfe/trunk: include/clang/AST/Expr.h include/clang/Basic/DiagnosticSemaKinds.td lib/AST/ExprClassification.cpp lib/Sema/SemaExpr.cpp lib/Sema/SemaInit.cpp test/SemaCXX/address-of-temporary.cpp
Gabor Greif
gabor at mac.com
Tue Jun 5 01:32:58 PDT 2012
Hi Richard,
how does this relate to http://llvm.org/bugs/show_bug.cgi?id=12677?
Thanks,
Gabor
> Author: rsmith
> Date: Mon Jun 4 17:27:30 2012
> New Revision: 157955
>
> URL: http://llvm.org/viewvc/llvm-project?rev=157955&view=rev
> Log:
> Add a warning for when an array-to-pointer decay is performed on an
> array
> temporary or an array subobject of a class temporary, and the
> resulting value
> is used to initialize a pointer which outlives the temporary. Such
> a pointer
> is always left dangling after the initialization completes and the
> array's
> lifetime ends.
More information about the cfe-commits
mailing list