[Bug c++/37920] ICE (segv) with typename typeof in local struct
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Oct 27 01:33:00 GMT 2008
------- Comment #3 from pinskia at gcc dot gnu dot org 2008-10-27 01:32 -------
Reduced testcase:
template<typename T> T& ensure_obj(const T&);
template <typename T>
void func2(T& t)
{
typedef __typeof__(ensure_obj(t)) ttt;
struct ttt1
{
ttt1( ttt arg0 ){}
} tttt ( t );
}
main()
{
double d = 5;
func2(d);
}
---- CUT ----
If I use decltype (which is part of the C++0x standard), it works ....
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2008-10-27 01:32:09
date| |
Summary|ICE (segv) with typename |ICE (segv) with typename
|typeof |typeof in local struct
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37920
More information about the Gcc-bugs
mailing list