public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11435] New: Incorrect main signatures fails to generate diagnostic, program fails
@ 2003-07-04 17:03 Michiel dot Salters at logicacmg dot com
  2003-07-04 17:05 ` [Bug c++/11435] " pinskia at physics dot uc dot edu
  0 siblings, 1 reply; 2+ messages in thread
From: Michiel dot Salters at logicacmg dot com @ 2003-07-04 17:03 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Incorrect main signatures fails to generate diagnostic,
                    program fails
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Michiel dot Salters at logicacmg dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.9
  GCC host triplet: sparc-sun-solaris2.9
GCC target triplet: sparc-sun-solaris2.9

An attempt to replace 
  int main( int argc, char** argv ) 
by
  int main ( std::string argv )
is not caught at compile time, and subsequent use
of argv causes a Bus Error.

Full program:
#include <string>
#include <iostream>

int main ( std::string argv )
{
  std::cout << argv << std::endl;
}


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

* [Bug c++/11435] Incorrect main signatures fails to generate diagnostic, program fails
  2003-07-04 17:03 [Bug c++/11435] New: Incorrect main signatures fails to generate diagnostic, program fails Michiel dot Salters at logicacmg dot com
@ 2003-07-04 17:05 ` pinskia at physics dot uc dot edu
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-04 17:05 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-04 17:05 -------
This is a dup of 6321 which is the same request.

*** This bug has been marked as a duplicate of 6321 ***


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

end of thread, other threads:[~2003-07-04 17:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-04 17:03 [Bug c++/11435] New: Incorrect main signatures fails to generate diagnostic, program fails Michiel dot Salters at logicacmg dot com
2003-07-04 17:05 ` [Bug c++/11435] " pinskia at physics dot uc dot edu

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