[cfe-commits] r132191 - in /cfe/trunk: lib/Sema/JumpDiagnostics.cpp test/CXX/stmt.stmt/stmt.dcl/p3.cpp
dgregor at apple.com
Fri May 27 14:35:34 PDT 2011
On May 27, 2011, at 9:48 AM, Sean Hunt wrote:
> 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
>> 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.
It's working fine in my tests… is there some specific case you had in mind?
More information about the cfe-commits