public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39987]  New: [4.3/4.4/4.5 Regression] Rejects default argument that is a template via access failure
@ 2009-05-01  0:49 pinskia at gcc dot gnu dot org
  2009-05-01  0:49 ` [Bug c++/39987] " pinskia at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-05-01  0:49 UTC (permalink / raw)
  To: gcc-bugs

Like PR 37971 but this time Find is a template member function instead of just
a member function. 
Testcase:

class foo
{
 template<typename U>
 static bool func(const U& x)
 {}
public:
 template<typename U>
 unsigned int Find(const U& x, bool (*pFunc) (const U&) = func) const
 {}
};

class bar {
 bool Initialize();
protected:
 foo b;
};

bool bar::Initialize()
{
        b.Find(b);
}


-- 
           Summary: [4.3/4.4/4.5 Regression] Rejects default argument that
                    is a template via access failure
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-12-26 20:31 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-01  0:49 [Bug c++/39987] New: [4.3/4.4/4.5 Regression] Rejects default argument that is a template via access failure pinskia at gcc dot gnu dot org
2009-05-01  0:49 ` [Bug c++/39987] " pinskia at gcc dot gnu dot org
2009-05-05 15:53 ` mmitchel at gcc dot gnu dot org
2009-08-04 12:03 ` dodji at gcc dot gnu dot org
2009-08-04 14:21 ` dodji at gcc dot gnu dot org
2009-08-04 19:50 ` dodji at gcc dot gnu dot org
2009-08-04 20:00 ` dodji at gcc dot gnu dot org
2009-08-04 20:01 ` dodji at gcc dot gnu dot org
2009-08-07 10:07 ` mikpe at it dot uu dot se
2009-08-07 13:13 ` dodji at gcc dot gnu dot org
2009-08-07 13:16 ` dodji at redhat dot com
2009-08-07 13:16 ` dodji at gcc dot gnu dot org
2009-08-10 10:10 ` [Bug c++/39987] [4.3 " dodji at gcc dot gnu dot org
2009-10-23 21:49 ` dodji at gcc dot gnu dot org
2009-12-26 19:17 ` paolo dot carlini at oracle dot com
2009-12-26 20:31 ` dodji at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).