https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70246
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME --- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Mike Jarvis from comment #4) > Created attachment 37984 [details] > An alternate source that uses a custom Complex class > > OK, here is a version that rolls its own Complex class, rather than using > the standard library's complex<double>. I stripped out the parts of that > that aren't relevant for this, so hopefully this is small enough for you. > > A possible clue is that the warning goes away if Complex is implemented in > terms of double _x and double _y (as the normal template version of > std::complex does) rather than __complex__ double _z (as the specialization > std::complex<double> does). I can't reproduce this bug with current gcc; this source produces no warnings for me when I compile it. Feel free to reopen if you still get the warning.