This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/23781] Implicit conversion from NULL to list<T>::iterator


------- Additional Comments From pcarlini at suse dot de  2005-09-08 21:06 -------
(In reply to comment #2)
> We don't accept
>    
>     #include <vector>
>     #include <string>
>   
>     int main()
>     {
>        using namespace std;
>        vector<string>::iterator p = NULL;
>     }
> 
> for proper type checking.  The list iterator constructor accepting a
> pointer should be explicit.

Agreed. Likewise for deque::iterator, I suppose. I will work on this.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pcarlini at suse dot de
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-09-08 21:06:28
               date|                            |


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]