uvw: Internal compiler error

Hi,

When build on a fresh ubuntu 16.04 that uses gcc 5.4.0, compiler crashes with the following:

uvw/src/uvw/process.hpp:235:49: internal compiler error: in tsubst_copy, at cp/pt.c:13217
         container.data.stream = get<uv_stream_t>(stream);
                                                 ^
Please submit a full bug report,
with preprocessed source if appropriate.

Any ideas on this one?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (17 by maintainers)

Most upvoted comments

@evanlabs Maybe you cound try this cpp11 branch, it works well even in gcc 4.8.2, and up-to-date with master branch.

@raoulh Ok, fixed UnderlyingType and now get<uv_stream_t>(stream) works just fine.
I added your test to the test suite and I plan to add more tests for ProcessHandle as soon as possible.
The only issue probably still open regards the following line:

container.data.stream = this->template get<uv_stream_t>()

I didn’t put it in my commit for I’m not sure that’s the sole problem with GCC 5.4.1.
If you can test everything with it and confirm that it works now (well, at least run the current test suite), feel free to open a PR with that change and I’ll accept it.

Also thank you for the lines missed after #94 have been emerged because of your help. Really appreciated.

Hi, About this issue, I just found out that a workaround for that ICE could be to write this: container.data.stream = this->template get<uv_stream_t>(stream);

The code is now building fine. Also I checked in the code and this is also written like that at other places in uvw. What do you think?