public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13673] New: Valid code rejected that earlier version did accept (default arguments)
@ 2004-01-13 18:50 sring at gmx dot net
2004-01-13 18:55 ` [Bug c++/13673] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: sring at gmx dot net @ 2004-01-13 18:50 UTC (permalink / raw)
To: gcc-bugs
#include <list>
int main()
{
std::list<int> l;
l.push_back();
return 0;
}
Spits an error:
t.cc:6: error: no matching function for call to `std::list<int,
std::allocator<int> >::push_back()'
/home/sr/gcc332/include/c++/3.3.2/bits/stl_list.h:746: error: candidates are:
void std::list<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = int, _Alloc =
std::allocator<int>]
--
Summary: Valid code rejected that earlier version did accept
(default arguments)
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sring at gmx dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13673
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/13673] Valid code rejected that earlier version did accept (default arguments)
2004-01-13 18:50 [Bug c++/13673] New: Valid code rejected that earlier version did accept (default arguments) sring at gmx dot net
@ 2004-01-13 18:55 ` pinskia at gcc dot gnu dot org
2004-01-13 18:57 ` sring at gmx dot net
2004-01-13 19:09 ` gdr at integrable-solutions dot net
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-13 18:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-13 18:55 -------
the code is invalid, the C++ standard does not define a push_back with no arguments.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13673
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/13673] Valid code rejected that earlier version did accept (default arguments)
2004-01-13 18:50 [Bug c++/13673] New: Valid code rejected that earlier version did accept (default arguments) sring at gmx dot net
2004-01-13 18:55 ` [Bug c++/13673] " pinskia at gcc dot gnu dot org
@ 2004-01-13 18:57 ` sring at gmx dot net
2004-01-13 19:09 ` gdr at integrable-solutions dot net
2 siblings, 0 replies; 4+ messages in thread
From: sring at gmx dot net @ 2004-01-13 18:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From sring at gmx dot net 2004-01-13 18:57 -------
Comeau does accept it (it is the best reference I have) as does every other
compiler I know.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13673
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/13673] Valid code rejected that earlier version did accept (default arguments)
2004-01-13 18:50 [Bug c++/13673] New: Valid code rejected that earlier version did accept (default arguments) sring at gmx dot net
2004-01-13 18:55 ` [Bug c++/13673] " pinskia at gcc dot gnu dot org
2004-01-13 18:57 ` sring at gmx dot net
@ 2004-01-13 19:09 ` gdr at integrable-solutions dot net
2 siblings, 0 replies; 4+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-01-13 19:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at integrable-solutions dot net 2004-01-13 19:09 -------
Subject: Re: Valid code rejected that earlier version did accept (default arguments)
"sring at gmx dot net" <gcc-bugzilla@gcc.gnu.org> writes:
| Comeau does accept it (it is the best reference I have) as does every other
| compiler I know.
That does not make it well-formed.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13673
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-01-13 19:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-13 18:50 [Bug c++/13673] New: Valid code rejected that earlier version did accept (default arguments) sring at gmx dot net
2004-01-13 18:55 ` [Bug c++/13673] " pinskia at gcc dot gnu dot org
2004-01-13 18:57 ` sring at gmx dot net
2004-01-13 19:09 ` gdr at integrable-solutions dot net
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).