public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29408]  New: [4.1 regression] parse error for valid code
@ 2006-10-10  1:17 debian-gcc at lists dot debian dot org
  2006-10-10  1:18 ` [Bug c++/29408] " debian-gcc at lists dot debian dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2006-10-10  1:17 UTC (permalink / raw)
  To: gcc-bugs

works with 4.0.4, 4.1.1, 4.2.0, fails with 4.1 branch 20061008

$ g++ -c -Wall -fPIC -fexceptions -frtti -I/usr/include/python2.3
-I/usr/share/python2.3/CXX -I/usr/include/subversion-1 -I/usr/include/apr-1.0
-I. -DNDEBUG -o pysvn.o pysvn.cpp
/usr/include/python2.3/CXX/Objects.hxx:1932: error: parse error in template
argument list


-- 
           Summary: [4.1 regression] parse error for valid code
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


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


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

* [Bug c++/29408] [4.1 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
@ 2006-10-10  1:18 ` debian-gcc at lists dot debian dot org
  2006-10-10  5:01 ` pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2006-10-10  1:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from debian-gcc at lists dot debian dot org  2006-10-10 01:18 -------
Created an attachment (id=12401)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12401&action=view)
preprocessed source


-- 


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


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

* [Bug c++/29408] [4.1 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
  2006-10-10  1:18 ` [Bug c++/29408] " debian-gcc at lists dot debian dot org
@ 2006-10-10  5:01 ` pinskia at gcc dot gnu dot org
  2006-10-10  8:53 ` rguenth at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-10  5:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-10-10 05:00 -------
I don't think this is valid code, reduced testcase:
template <class T> class a
{
  ~a<T>();
};


-- 


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


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

* [Bug c++/29408] [4.1 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
  2006-10-10  1:18 ` [Bug c++/29408] " debian-gcc at lists dot debian dot org
  2006-10-10  5:01 ` pinskia at gcc dot gnu dot org
@ 2006-10-10  8:53 ` rguenth at gcc dot gnu dot org
  2006-10-10 16:30 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-10-10  8:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2006-10-10 08:52 -------
It's at least accepted by EDG and Comeau in strict-ansi mode.  (so, confirmed)


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-10-10 08:52:52
               date|                            |


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


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

* [Bug c++/29408] [4.1 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
                   ` (2 preceding siblings ...)
  2006-10-10  8:53 ` rguenth at gcc dot gnu dot org
@ 2006-10-10 16:30 ` pinskia at gcc dot gnu dot org
  2006-10-10 18:04 ` debian-gcc at lists dot debian dot org
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-10 16:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-10-10 16:30 -------
(In reply to comment #3)
> It's at least accepted by EDG and Comeau in strict-ansi mode.  (so, confirmed)
Don't take EDG/Comeau as conforming to the standard.


-- 


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


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

* [Bug c++/29408] [4.1 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
                   ` (3 preceding siblings ...)
  2006-10-10 16:30 ` pinskia at gcc dot gnu dot org
@ 2006-10-10 18:04 ` debian-gcc at lists dot debian dot org
  2006-10-10 18:26 ` debian-gcc at lists dot debian dot org
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2006-10-10 18:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from debian-gcc at lists dot debian dot org  2006-10-10 18:04 -------
20060928 works

  Matthias


-- 


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


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

* [Bug c++/29408] [4.1 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
                   ` (4 preceding siblings ...)
  2006-10-10 18:04 ` debian-gcc at lists dot debian dot org
@ 2006-10-10 18:26 ` debian-gcc at lists dot debian dot org
  2006-10-12  0:37 ` [Bug c++/29408] [4.1/4.2 " debian-gcc at lists dot debian dot org
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2006-10-10 18:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from debian-gcc at lists dot debian dot org  2006-10-10 18:25 -------
r117410 is the first version showing the failure.

r117410 | mmitchel | 2006-10-03 20:06:00 +0200 (Di, 03 Okt 2006) | 12 lines

        PR c++/29138
        * decl2.c (grokfield): Don't handle access declarations here.
        * parser.c (cp_parser_using_declaration): Handle access
        declarations too.
        (cp_parser_block_declaration): Adjust calls to
        cp_parser_using_declaration.
        (cp_parser_member_declaration): Likewise.  Use
        cp_parser_using_declaration to look for access_declarations.
        PR c++/29138
        * g++.dg/inherit/access8.C: New test.
        * g++.dg/template/dtor4.C: Tweak error messages.


-- 

debian-gcc at lists dot debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at codesourcery dot com


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


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

* [Bug c++/29408] [4.1/4.2 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
                   ` (5 preceding siblings ...)
  2006-10-10 18:26 ` debian-gcc at lists dot debian dot org
@ 2006-10-12  0:37 ` debian-gcc at lists dot debian dot org
  2006-10-12  3:58 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2006-10-12  0:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from debian-gcc at lists dot debian dot org  2006-10-12 00:37 -------
fails with trunk 20061012 as well.

  Matthias


-- 

debian-gcc at lists dot debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.1.2                       |4.1.2 4.2.0
      Known to work|4.0.4 4.1.1 4.2.0           |4.0.4 4.1.1
            Summary|[4.1 regression] parse error|[4.1/4.2 regression] parse
                   |for valid code              |error for valid code


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


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

* [Bug c++/29408] [4.1/4.2 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
                   ` (6 preceding siblings ...)
  2006-10-12  0:37 ` [Bug c++/29408] [4.1/4.2 " debian-gcc at lists dot debian dot org
@ 2006-10-12  3:58 ` pinskia at gcc dot gnu dot org
  2006-10-12  4:27 ` bangerth at dealii dot org
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-12  3:58 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.2


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


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

* [Bug c++/29408] [4.1/4.2 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
                   ` (7 preceding siblings ...)
  2006-10-12  3:58 ` pinskia at gcc dot gnu dot org
@ 2006-10-12  4:27 ` bangerth at dealii dot org
  2006-10-15 21:21 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: bangerth at dealii dot org @ 2006-10-12  4:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from bangerth at dealii dot org  2006-10-12 04:27 -------
I don't believe the code is valid.

W.


-- 


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


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

* [Bug c++/29408] [4.1/4.2 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
                   ` (8 preceding siblings ...)
  2006-10-12  4:27 ` bangerth at dealii dot org
@ 2006-10-15 21:21 ` mmitchel at gcc dot gnu dot org
  2006-10-16 17:28 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-15 21:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from mmitchel at gcc dot gnu dot org  2006-10-15 21:21 -------
There is long-standing confusion in the C++ standard regarding the naming of
destructors in various situations.  (Part of the issue is to what extent
destructors have names, and how the injection of class names into their own
scopes work, and how the lookup rules for qualified names apply to destructors,
and so forth.)  However, I do think this code should be accepted; it doesn't
look like one of the particularly tricky cases.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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


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

* [Bug c++/29408] [4.1/4.2 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
                   ` (9 preceding siblings ...)
  2006-10-15 21:21 ` mmitchel at gcc dot gnu dot org
@ 2006-10-16 17:28 ` mmitchel at gcc dot gnu dot org
  2006-10-16 23:08 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-16 17:28 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug c++/29408] [4.1/4.2 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
                   ` (10 preceding siblings ...)
  2006-10-16 17:28 ` mmitchel at gcc dot gnu dot org
@ 2006-10-16 23:08 ` mmitchel at gcc dot gnu dot org
  2006-10-16 23:12 ` [Bug c++/29408] [4.1 " mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-16 23:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from mmitchel at gcc dot gnu dot org  2006-10-16 23:08 -------
Subject: Bug 29408

Author: mmitchel
Date: Mon Oct 16 23:07:46 2006
New Revision: 117800

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117800
Log:
        PR c++/29408
        * parser.c (cp_parser_using_declaration): Stop parsing when
        something goes wrong with an access declaration.
        PR c++/29408
        * g++.dg/parse/dtor12.C: New test.

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


-- 


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


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

* [Bug c++/29408] [4.1 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
                   ` (11 preceding siblings ...)
  2006-10-16 23:08 ` mmitchel at gcc dot gnu dot org
@ 2006-10-16 23:12 ` mmitchel at gcc dot gnu dot org
  2006-10-17  0:01 ` mmitchel at gcc dot gnu dot org
  2006-10-17  0:01 ` mmitchel at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-16 23:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from mmitchel at gcc dot gnu dot org  2006-10-16 23:12 -------
Fixed in 4.2.0.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2 regression] parse  |[4.1 regression] parse error
                   |error for valid code        |for valid code


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


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

* [Bug c++/29408] [4.1 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
                   ` (13 preceding siblings ...)
  2006-10-17  0:01 ` mmitchel at gcc dot gnu dot org
@ 2006-10-17  0:01 ` mmitchel at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-17  0:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from mmitchel at gcc dot gnu dot org  2006-10-17 00:01 -------
Fixed in 4.1.2.


-- 

mmitchel at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/29408] [4.1 regression] parse error for valid code
  2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
                   ` (12 preceding siblings ...)
  2006-10-16 23:12 ` [Bug c++/29408] [4.1 " mmitchel at gcc dot gnu dot org
@ 2006-10-17  0:01 ` mmitchel at gcc dot gnu dot org
  2006-10-17  0:01 ` mmitchel at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-17  0:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from mmitchel at gcc dot gnu dot org  2006-10-17 00:01 -------
Subject: Bug 29408

Author: mmitchel
Date: Tue Oct 17 00:01:14 2006
New Revision: 117802

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117802
Log:
        PR c++/29408
        * parser.c (cp_parser_using_declaration): Stop parsing when
        something goes wrong with an access declaration.
        PR c++/29408
        * g++.dg/parse/dtor12.C: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/dtor12.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=29408


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

end of thread, other threads:[~2006-10-17  0:01 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-10  1:17 [Bug c++/29408] New: [4.1 regression] parse error for valid code debian-gcc at lists dot debian dot org
2006-10-10  1:18 ` [Bug c++/29408] " debian-gcc at lists dot debian dot org
2006-10-10  5:01 ` pinskia at gcc dot gnu dot org
2006-10-10  8:53 ` rguenth at gcc dot gnu dot org
2006-10-10 16:30 ` pinskia at gcc dot gnu dot org
2006-10-10 18:04 ` debian-gcc at lists dot debian dot org
2006-10-10 18:26 ` debian-gcc at lists dot debian dot org
2006-10-12  0:37 ` [Bug c++/29408] [4.1/4.2 " debian-gcc at lists dot debian dot org
2006-10-12  3:58 ` pinskia at gcc dot gnu dot org
2006-10-12  4:27 ` bangerth at dealii dot org
2006-10-15 21:21 ` mmitchel at gcc dot gnu dot org
2006-10-16 17:28 ` mmitchel at gcc dot gnu dot org
2006-10-16 23:08 ` mmitchel at gcc dot gnu dot org
2006-10-16 23:12 ` [Bug c++/29408] [4.1 " mmitchel at gcc dot gnu dot org
2006-10-17  0:01 ` mmitchel at gcc dot gnu dot org
2006-10-17  0:01 ` mmitchel 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).