PR c++/46277
* init.c (expand_default_init): Avoid ICE if we can't figure out
which function is being called.
From-SVN: r166254
+2010-11-03 Jason Merrill <jason@redhat.com>
+
+ PR c++/46277
+ * init.c (expand_default_init): Avoid ICE if we can't figure out
+ which function is being called.
+
2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
* class.c (build_base_path, add_vcall_offset): Use build_zero_cst
if (exp == true_exp && TREE_CODE (rval) == CALL_EXPR)
{
tree fn = get_callee_fndecl (rval);
- if (DECL_DECLARED_CONSTEXPR_P (fn))
+ if (fn && DECL_DECLARED_CONSTEXPR_P (fn))
{
tree e = maybe_constant_value (rval);
if (TREE_CONSTANT (e))
--- /dev/null
+// PR c++/46277
+
+class ggRGBE {
+public:
+ ggRGBE();
+};
+template <class T> class ggIO
+{
+ void readbody(int);
+ ggRGBE *scanline;
+};
+template <class T> void
+ggIO<T>::readbody(int width)
+{
+ scanline = new ggRGBE[width];
+}