On Jul 21, 2010, at 11:35 AM, Douglas Gregor wrote:

>>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =====================================================================
>> --- cfe/trunk/lib/Sema/SemaInit.cpp (original)
>> +++ cfe/trunk/lib/Sema/SemaInit.cpp Wed Jul 21 13:31:47 2010
>> @@ -3803,7 +3803,8 @@
>>
>>      // Build a call to the selected constructor.
>>      ASTOwningVector<&ActionBase::DeleteExpr> ConstructorArgs(S);
>> -      SourceLocation Loc = Kind.getLocation();
>> +      SourceLocation Loc = Kind.isCopyInit() ? Kind.getEqualLoc()
>> +                           : Kind.getLocation();
>
> Copy-initialization doesn't always involve an '=' sign, so you  
> probably want to check Kind.isCopyInit() &&  
> Kind.getEqualLoc().isValid().
Thanks. In r109025.

- fariborz

>
>
>       - Doug
>

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to