[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug c++/28317] template function returning nested class fails to compile when defined outside of its class




------- Comment #1 from rguenth at gcc dot gnu dot org  2006-07-08 18:20 -------
You are missing a 'typename'.  Inner is a dependent type, so it needs to read

    template <typename T>
    typename Outer<T>::Inner
    Outer<T>::get() const
    {
        return Inner();
    }


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



Reply to: