[Bug c++/69323] [4.9/5/6 Regression] Segmentation fault when instantiating class template with inner class which declares itself as a friend
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jan 17 04:00:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69323
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-01-17
Target Milestone|--- |4.9.4
Summary|Segmentation fault when |[4.9/5/6 Regression]
|instantiating class |Segmentation fault when
|template with inner class |instantiating class
|which declares itself as a |template with inner class
|friend |which declares itself as a
| |friend
Ever confirmed|0 |1
Known to fail| |4.7.0, 6.0
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
template<int VALUE>
struct Outer
{
struct StupidValueTrick
{
template<int VAL> friend struct Outer::StupidValueTrick;
};
};
typedef Outer<42>::StupidValueTrick GoodValue;
GoodValue good;
---CUT ---
Confirmed.
More information about the Gcc-bugs
mailing list