Travis Vitek wrote:
Martin Sebor wrote:

Travis Vitek wrote:
Martin Sebor wrote:

Travis Vitek (JIRA) wrote:
[...]
I've reduced the problem to the following testcase...
I haven't looked at it very closely -- is this a compiler bug?

Martin

It believe it is. I'm filing an external bug right now for that.
Cool. FYI, I played with it a little and here's what I reduced
it to:

  extern "C" typedef void F (int);
  extern "C" void bar (int) { }

  int main () {
      F* const f = (F*)-2;
      return f == bar;
  }


I've arrived at nearly the same testcase. I was able to omit the C
linkage stuff. Filed as STDCXX-939.

Even more concise! Except your names are longer ;-)

Martin


I sent the test case to HP.


Thanks!



Martin


Reply via email to