[llvm-commits] CVS: llvm/include/llvm/Support/CommandLine.h

Reid Spencer reid at x10sys.com
Fri Jun 17 08:21:36 PDT 2005

On Fri, 2005-06-17 at 08:20 -0500, Chris Lattner wrote:

> silence a huge number of bogus warnings with GCC 4 on Reid's tester.
> diff -u llvm/include/llvm/Support/CommandLine.h:1.43 llvm/include/llvm/Support/CommandLine.h:1.44
> -    typename ParserClass::parser_data_type Val;
> +    typename ParserClass::parser_data_type Val = 
> +       typename ParserClass::parser_data_type();

I tried this a while back. I think this runs into some issues when
parser_data_type isn't constructible. I've tried various initializations
but there doesn't seem to be a consistent one that works with all
parser_data_type types.  Did all of LLVM recompile correctly with this

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20050617/cf233671/attachment.sig>

More information about the llvm-commits mailing list