public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/6403: assignment of int to string is not detected
@ 2002-04-25  9:26 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-04-25  9:26 UTC (permalink / raw)
  To: O.Kullmann, gcc-bugs, gcc-prs, nobody

Synopsis: assignment of int to string is not detected

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Thu Apr 25 09:26:22 2002
State-Changed-Why:
    not a bug. There is an assignment operator that takes
    a car type. Your int is converted to that (via an
    integral conversion) and then stringized

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6403


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

* c++/6403: assignment of int to string is not detected
@ 2002-04-22  4:46 O.Kullmann
  0 siblings, 0 replies; 2+ messages in thread
From: O.Kullmann @ 2002-04-22  4:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6403
>Category:       c++
>Synopsis:       assignment of int to string is not detected
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 22 04:46:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Kullmann
>Release:        gcc 3.0.4
>Organization:
>Environment:
Linux
>Description:
An assignment of an integer value to a string variable
is not detected.
>How-To-Repeat:
#include <string>
#include <iostream>

int main() {
  int i = 6;
  std::string s;
  s = i;
  std::cout << s << "\n";
}

compiles without error messages
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-04-25 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-25  9:26 c++/6403: assignment of int to string is not detected nathan
  -- strict thread matches above, loose matches on Subject: below --
2002-04-22  4:46 O.Kullmann

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).