[cfe-commits] r132191 - in /cfe/trunk: lib/Sema/JumpDiagnostics.cpp test/CXX/stmt.stmt/stmt.dcl/p3.cpp

Sean Hunt scshunt at csclub.uwaterloo.ca
Fri May 27 09:48:43 PDT 2011


On 05/27/11 09:05, Douglas Gregor wrote:
> Author: dgregor
> Date: Fri May 27 11:05:29 2011
> New Revision: 132191
>
> URL: http://llvm.org/viewvc/llvm-project?rev=132191&view=rev
> Log:
> Update the jump-scope checker for local variables with initializers,
> so that it looks at the initializer of a local variable of class type
> (or array thereof) to determine whether it's just an implicit
> invocation of the trivial default constructor. Fixes PR10034.

I don't believe this correctly warns (an error seems excessive) in C++03 
mode when it's a non-POD type that we're jumping over.

Sean



More information about the cfe-commits mailing list