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 c/36941] gcc does not reject invalid cast



------- Comment #3 from sabre at nondot dot org  2008-07-25 22:31 -------
Though that does raise a question.  Does GCC normally emit errors for undefined
behavior?  I thought the policy was to insert runtime traps?  If so, doesn't
the { x; } case qualify, or does it violate some other constraint?


-- 


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


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