------- Comment #7 from reichelt at gcc dot gnu dot org  2005-11-17 11:59 
-------
Here's a sightly simpler testcase.
If I remove the copy-ctor from A, I get the failure from PR24606.

=========================================
template<typename F> void foo(F f)
{
    f();
}

struct A
{
    A();
    A(const A&);
};

template<int> void bar(A = A());

void baz()
{
    foo(bar<0>);
}
=========================================

Btw, removing the template from "bar" makes the code compile.
So it seems like the code is valid after all.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code, monitored
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-17 11:59:15
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24602

Reply via email to