public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28249]  New: [4.0/4.1/4.2 regression] "long long long" accepted by catch
@ 2006-07-04 16:39 reichelt at gcc dot gnu dot org
  2006-07-04 17:05 ` [Bug c++/28249] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-04 16:39 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code is accepted since GCC 4.0.3:

================================
void foo()
{
  try {}
  catch (long long long) {}
}
================================


-- 
           Summary: [4.0/4.1/4.2 regression] "long long long" accepted by
                    catch
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/28249] [4.0/4.1/4.2 regression] "long long long" accepted by catch
  2006-07-04 16:39 [Bug c++/28249] New: [4.0/4.1/4.2 regression] "long long long" accepted by catch reichelt at gcc dot gnu dot org
@ 2006-07-04 17:05 ` pinskia at gcc dot gnu dot org
  2006-07-14 14:03 ` reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-04 17:05 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.4


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


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

* [Bug c++/28249] [4.0/4.1/4.2 regression] "long long long" accepted by catch
  2006-07-04 16:39 [Bug c++/28249] New: [4.0/4.1/4.2 regression] "long long long" accepted by catch reichelt at gcc dot gnu dot org
  2006-07-04 17:05 ` [Bug c++/28249] " pinskia at gcc dot gnu dot org
@ 2006-07-14 14:03 ` reichelt at gcc dot gnu dot org
  2006-07-14 20:30 ` patchapp at dberlin dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-14 14:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from reichelt at gcc dot gnu dot org  2006-07-14 14:03 -------
I think I broke this with my patch for PR 26151. :-(
Testing a patch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |reichelt at gcc dot gnu dot
                   |dot org                     |org


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


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

* [Bug c++/28249] [4.0/4.1/4.2 regression] "long long long" accepted by catch
  2006-07-04 16:39 [Bug c++/28249] New: [4.0/4.1/4.2 regression] "long long long" accepted by catch reichelt at gcc dot gnu dot org
  2006-07-04 17:05 ` [Bug c++/28249] " pinskia at gcc dot gnu dot org
  2006-07-14 14:03 ` reichelt at gcc dot gnu dot org
@ 2006-07-14 20:30 ` patchapp at dberlin dot org
  2006-07-15  9:44 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: patchapp at dberlin dot org @ 2006-07-14 20:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from patchapp at dberlin dot org  2006-07-14 20:30 -------
Subject: Bug number PR c++/28249

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00647.html


-- 


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


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

* [Bug c++/28249] [4.0/4.1/4.2 regression] "long long long" accepted by catch
  2006-07-04 16:39 [Bug c++/28249] New: [4.0/4.1/4.2 regression] "long long long" accepted by catch reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-07-14 20:30 ` patchapp at dberlin dot org
@ 2006-07-15  9:44 ` reichelt at gcc dot gnu dot org
  2006-07-15  9:54 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-15  9:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from reichelt at gcc dot gnu dot org  2006-07-15 09:44 -------
Subject: Bug 28249

Author: reichelt
Date: Sat Jul 15 09:44:36 2006
New Revision: 115469

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115469
Log:
        PR c++/28249
        * parser.c (cp_parser_check_decl_spec): New function.
        (cp_parser_decl_specifier_seq): Factor out check for repeated
        decl-specifiers into cp_parser_check_decl_spec. Use it.
        (cp_parser_type_specifier_seq) Use it.

        * g++.dg/parse/catch1.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/parse/catch1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/28249] [4.0/4.1/4.2 regression] "long long long" accepted by catch
  2006-07-04 16:39 [Bug c++/28249] New: [4.0/4.1/4.2 regression] "long long long" accepted by catch reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-07-15  9:44 ` reichelt at gcc dot gnu dot org
@ 2006-07-15  9:54 ` reichelt at gcc dot gnu dot org
  2006-07-15  9:59 ` reichelt at gcc dot gnu dot org
  2006-07-15 10:10 ` reichelt at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-15  9:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2006-07-15 09:54 -------
Subject: Bug 28249

Author: reichelt
Date: Sat Jul 15 09:54:25 2006
New Revision: 115470

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115470
Log:
        PR c++/28249
        * parser.c (cp_parser_check_decl_spec): New function.
        (cp_parser_decl_specifier_seq): Factor out check for repeated
        decl-specifiers into cp_parser_check_decl_spec. Use it.
        (cp_parser_type_specifier_seq): Use it.

        * g++.dg/parse/catch1.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/catch1.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/parser.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/28249] [4.0/4.1/4.2 regression] "long long long" accepted by catch
  2006-07-04 16:39 [Bug c++/28249] New: [4.0/4.1/4.2 regression] "long long long" accepted by catch reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-07-15  9:54 ` reichelt at gcc dot gnu dot org
@ 2006-07-15  9:59 ` reichelt at gcc dot gnu dot org
  2006-07-15 10:10 ` reichelt at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-15  9:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2006-07-15 09:58 -------
Subject: Bug 28249

Author: reichelt
Date: Sat Jul 15 09:58:47 2006
New Revision: 115471

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115471
Log:
        PR c++/28249
        * parser.c (cp_parser_check_decl_spec): New function.
        (cp_parser_decl_specifier_seq): Factor out check for repeated
        decl-specifiers into cp_parser_check_decl_spec. Use it.
        (cp_parser_type_specifier_seq): Use it.

        * g++.dg/parse/catch1.C: New test.

Added:
    branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/catch1.C
Modified:
    branches/gcc-4_0-branch/gcc/cp/ChangeLog
    branches/gcc-4_0-branch/gcc/cp/parser.c
    branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/28249] [4.0/4.1/4.2 regression] "long long long" accepted by catch
  2006-07-04 16:39 [Bug c++/28249] New: [4.0/4.1/4.2 regression] "long long long" accepted by catch reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-07-15  9:59 ` reichelt at gcc dot gnu dot org
@ 2006-07-15 10:10 ` reichelt at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-15 10:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from reichelt at gcc dot gnu dot org  2006-07-15 10:10 -------
Fixed on mainline, 4.1 branch, and 4.0 branch.


-- 

reichelt at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2006-07-15 10:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-04 16:39 [Bug c++/28249] New: [4.0/4.1/4.2 regression] "long long long" accepted by catch reichelt at gcc dot gnu dot org
2006-07-04 17:05 ` [Bug c++/28249] " pinskia at gcc dot gnu dot org
2006-07-14 14:03 ` reichelt at gcc dot gnu dot org
2006-07-14 20:30 ` patchapp at dberlin dot org
2006-07-15  9:44 ` reichelt at gcc dot gnu dot org
2006-07-15  9:54 ` reichelt at gcc dot gnu dot org
2006-07-15  9:59 ` reichelt at gcc dot gnu dot org
2006-07-15 10:10 ` reichelt at gcc dot gnu dot org

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