This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47808] [C++0x] internal compiler error: in tsubst_copy_and_build, at cp/pt.c:13326
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 9 Mar 2011 14:05:39 +0000
- Subject: [Bug c++/47808] [C++0x] internal compiler error: in tsubst_copy_and_build, at cp/pt.c:13326
- Auto-submitted: auto-generated
- References: <bug-47808-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47808
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-09 14:05:35 UTC ---
template <typename T>
struct typeprops {
typedef T complex;
typedef T real;
};
namespace good {
template <typename T>
inline typename typeprops<T>::real abs (T const & x)
{ return 1; }
}
template <typename T> bool UseScientificNotation (T const & x);
void
OutputVar (int const n)
{
if (UseScientificNotation (n))
return;
}
template <typename T>
bool
UseScientificNotation (T const & x)
{
typedef int ai[(good::abs(0.1) > 0) ? 1 : -1];
}