<div class="gmail_quote">On Wed, Jul 18, 2012 at 3:35 PM, Aaron Ballman <span dir="ltr"><<a href="mailto:aaron@aaronballman.com" target="_blank">aaron@aaronballman.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Jul 18, 2012 at 5:07 PM, Richard Smith <<a href="mailto:richard@metafoo.co.uk">richard@metafoo.co.uk</a>> wrote:<br>
> On Wed, Jul 18, 2012 at 2:56 PM, Aaron Ballman <<a href="mailto:aaron@aaronballman.com">aaron@aaronballman.com</a>><br>
> wrote:<br>
>><br>
>> Author: aaronballman<br>
>> Date: Wed Jul 18 16:56:43 2012<br>
>> New Revision: 160455<br>
>><br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=160455&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=160455&view=rev</a><br>
>> Log:<br>
>> Fixing up a test case that was failing due to the lack of -std=c++11<br>
><br>
><br>
> What was the failure? This testcase doesn't seem to have anything to do with<br>
> C++11, and had been unchanged for ~2 years.<br>
<br>
</div>I'm still not certain why this is different, but this test case used<br>
to pass on Windows when run from vanilla cmd.exe, and now it's stopped<br>
(though it does run fine from a VS 2010 command prompt).  The problem<br>
is a string of errors dealing with auto:<br>
<br>
Command 0 Stderr:<br>
error: 'error' diagnostics seen but not expected:<br>
  Line 414: 'auto' not allowed in function return type<br>
  Line 414: expected ';' at end of declaration list<br>
  Line 414: 'auto' not allowed in function return type<br>
  Line 414: expected ';' at end of declaration list<br>
  Line 414: expected parameter declarator<br>
  Line 414: expected ')'<br>
  Line 414: '_Fn' cannot be the name of a parameter<br>
  Line 414: expected ';' at end of declaration list<br>
  Line 197: use of undeclared identifier 'static_assert'; did you mean 'static_c<br>
ast'?<br>
  Line 214: use of undeclared identifier 'static_assert'; did you mean 'static_c<br>
ast'?<br>
  Line 238: expected parameter declarator<br>
  Line 238: expected ')'<br>
  Line 442: function definition does not declare parameters<br>
  Line 488: no viable conversion from 'int' to 'std::exception_ptr'<br>
  Line 527: unknown type name 'nullptr_t'<br>
  Line 532: unknown type name 'nullptr_t'<br>
error: 'note' diagnostics seen but not expected:<br>
  Line 414: to match this '('<br>
  Line 237: to match this '('<br>
  Line 450: candidate constructor not viable: no known conversion from 'int' to<br>
'const std::exception_ptr &' for 1st argument<br>
19 errors generated.<br>
<br>
So I do agree that the -std=c++11 change isn't a good fix (I'll back<br>
it out), but I'm stumped as to why this has suddenly stopped working<br>
when it was previously fine.</blockquote><div><br></div><div>This test indirectly includes <typeinfo>. Presumably your system now has a <typeinfo> which requires C++11. I'm surprised you don't also see failures in the 8 tests in test/CodeGenCXX which include <typeinfo>.</div>
</div>