public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27235]  New: goto crossing P.O.D. initialization
@ 2006-04-21  3:33 acahalan at gmail dot com
  2006-04-21 16:04 ` [Bug c++/27235] " pinskia at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: acahalan at gmail dot com @ 2006-04-21  3:33 UTC (permalink / raw)
  To: gcc-bugs

I presume that the C++ standard requires this to be an error:

int foo(int arg){
  goto Hell;
  int i = arg;
Hell:
  return arg;  // or using i here
}

Especially in the case of plain old data (no constructor, etc.)
this behavior is needlessly incompatible with C.

Please require -pedantic -std=c++98 for such unfriendly behavior.


-- 
           Summary: goto crossing P.O.D. initialization
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: acahalan at gmail dot com


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


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

end of thread, other threads:[~2006-05-01 23:30 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-21  3:33 [Bug c++/27235] New: goto crossing P.O.D. initialization acahalan at gmail dot com
2006-04-21 16:04 ` [Bug c++/27235] " pinskia at gcc dot gnu dot org
2006-04-21 16:18 ` pinskia at gcc dot gnu dot org
2006-04-22  1:03 ` acahalan at gmail dot com
2006-04-22  1:12 ` pinskia at gcc dot gnu dot org
2006-04-22  7:12 ` acahalan at gmail dot com
2006-04-22 15:34 ` pinskia at gcc dot gnu dot org
2006-04-23 19:05 ` falk at debian dot org
2006-04-23 20:21 ` pinskia at gcc dot gnu dot org
2006-04-23 20:39 ` acahalan at gmail dot com
2006-04-23 20:53 ` pinskia at gcc dot gnu dot org
2006-04-24  4:10 ` acahalan at gmail dot com
2006-05-01 20:45 ` gdr at integrable-solutions dot net
2006-05-01 20:47 ` gdr at integrable-solutions dot net
2006-05-01 20:48 ` gdr at integrable-solutions dot net
2006-05-01 20:55 ` falk at debian dot org
2006-05-01 23:30 ` 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).