public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60068] New: missing diagnostic on array with negative bounds in template
@ 2014-02-04 22:44 msebor at gmail dot com
  0 siblings, 0 replies; only message in thread
From: msebor at gmail dot com @ 2014-02-04 22:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60068
           Summary: missing diagnostic on array with negative bounds in
                    template
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gmail dot com

GCC 4.8.2 and all versions prior to it fail to diagnose the following
ill-formed C++ '98 program:

$ cat u.cpp && g++ -Wall -Wextra -Werror -pedantic -c -o/dev/null u.cpp && echo
success
template <int N>
void f (int [N]) { }

void g (void) {
    f<-1>(0);
}

success


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-02-04 22:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-04 22:44 [Bug c++/60068] New: missing diagnostic on array with negative bounds in template msebor at gmail dot com

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