[cfe-commits] r84347 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/CXX/dcl.decl/dcl.init/dcl.init.aggr/p4.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Sat Oct 17 14:16:20 PDT 2009


Daniel Dunbar wrote:
> On Sat, Oct 17, 2009 at 12:37 PM, Sebastian Redl
> <sebastian.redl at getdesigned.at> wrote:
>   
>> Author: cornedbee
>> Date: Sat Oct 17 14:37:06 2009
>> New Revision: 84347
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=84347&view=rev
>> Log:
>> In some dependent contexts, incomplete array types persist into FinalizeDeclaratorGroup. Don't require them to have a complete type. This allows us to compile Hello World with the Apache stdcxx library. If you don't use endl, it even links and runs.
>>     
>
> What is the "it"?
>   
The Hello World program, i.e.

#include <iostream>
int main() { std::cout << "Hello, Clang!\n"; }

The problem was (until my most recent change) that this program:

#include <iostream>
int main() { std::cout << "Hello, Clang!" << std::endl; }

would not instantiate the std::endl function template and thus fail to link.

Sebastian



More information about the cfe-commits mailing list