public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23698] New: [4.1 Regression] accepts invalid
@ 2005-09-02 15:41 pinskia at gcc dot gnu dot org
  2005-09-02 15:44 ` [Bug c++/23698] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-02 15:41 UTC (permalink / raw)
  To: gcc-bugs

The following code is accepted in 4.1 but should not be:
struct g   {
  bool operator==(const g& __arg) const;
};
template< typename T > struct is_integral {
  static const T value = false;
};
template <bool>   struct enable_if_c;
template<typename Functor> typename enable_if_c<(is_integral<Functor>::value)>::type 
operator==(const int& f, Functor g)   {
}
template<class D>     int get_deleter( g const & ti, g const & ti1 )     {
  return ti == ti1;
}

-- 
           Summary: [4.1 Regression] accepts invalid
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <bug-23698-6528@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-13 19:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-02 15:41 [Bug c++/23698] New: [4.1 Regression] accepts invalid pinskia at gcc dot gnu dot org
2005-09-02 15:44 ` [Bug c++/23698] " pinskia at gcc dot gnu dot org
2005-09-02 15:47 ` pinskia at gcc dot gnu dot org
2005-09-02 16:34 ` bangerth at dealii dot org
2005-09-02 16:39 ` pinskia at gcc dot gnu dot org
2005-09-15 22:14 ` janis at gcc dot gnu dot org
2005-09-15 22:20 ` geoffk at gcc dot gnu dot org
     [not found] <bug-23698-6528@http.gcc.gnu.org/bugzilla/>
2005-10-13 19:23 ` pinskia 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).