public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45665]  New: [4.4/4.5/4.6 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code
@ 2010-09-14  0:48 zsojka at seznam dot cz
  2010-09-14 10:18 ` [Bug c++/45665] " rguenth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2010-09-14  0:48 UTC (permalink / raw)
  To: gcc-bugs

Compiler output:
$ gcc testcase.C 
testcase.C:2:11: error: type/value mismatch at argument 1 in template parameter
list for 'template<class> struct S'
testcase.C:2:11: error:   expected a type, got '0'
testcase.C:2:21: internal compiler error: tree check: expected class 'type',
have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

----- testcase.C -----
template < typename > struct S;
void (S <0>::*ptr) ();
----------------------

Tested revisions:
r164228 - crash
r161659 - crash
r159696 - OK
r158978 - OK
4.5 r163761 - crash
4.5 r158978 - OK
4.4 r160770 - crash
4.4 r154975 - OK


-- 
           Summary: [4.4/4.5/4.6 Regression] ICE: tree check: expected class
                    'type', have 'exceptional' (error_mark) in
                    grokdeclarator, at cp/decl.c:8797 on invalid code
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz


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


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

* [Bug c++/45665] [4.4/4.5/4.6 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code
  2010-09-14  0:48 [Bug c++/45665] New: [4.4/4.5/4.6 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code zsojka at seznam dot cz
@ 2010-09-14 10:18 ` rguenth at gcc dot gnu dot org
  2010-09-14 10:46 ` paolo dot carlini at oracle dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-14 10:18 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.5


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


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

* [Bug c++/45665] [4.4/4.5/4.6 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code
  2010-09-14  0:48 [Bug c++/45665] New: [4.4/4.5/4.6 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code zsojka at seznam dot cz
  2010-09-14 10:18 ` [Bug c++/45665] " rguenth at gcc dot gnu dot org
@ 2010-09-14 10:46 ` paolo dot carlini at oracle dot com
  2010-09-14 16:03 ` hjl dot tools at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-09-14 10:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from paolo dot carlini at oracle dot com  2010-09-14 10:46 -------
Seems simple


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |paolo dot carlini at oracle
                   |dot org                     |dot com
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-09-14 10:46:27
               date|                            |


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


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

* [Bug c++/45665] [4.4/4.5/4.6 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code
  2010-09-14  0:48 [Bug c++/45665] New: [4.4/4.5/4.6 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code zsojka at seznam dot cz
  2010-09-14 10:18 ` [Bug c++/45665] " rguenth at gcc dot gnu dot org
  2010-09-14 10:46 ` paolo dot carlini at oracle dot com
@ 2010-09-14 16:03 ` hjl dot tools at gmail dot com
  2010-09-15  9:07 ` paolo at gcc dot gnu dot org
  2010-09-15  9:08 ` [Bug c++/45665] [4.4/4.5 " paolo dot carlini at oracle dot com
  4 siblings, 0 replies; 8+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-09-14 16:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl dot tools at gmail dot com  2010-09-14 16:02 -------
It is caused by revision 159939:

http://gcc.gnu.org/ml/gcc-cvs/2010-05/msg00996.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com


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


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

* [Bug c++/45665] [4.4/4.5/4.6 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code
  2010-09-14  0:48 [Bug c++/45665] New: [4.4/4.5/4.6 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2010-09-14 16:03 ` hjl dot tools at gmail dot com
@ 2010-09-15  9:07 ` paolo at gcc dot gnu dot org
  2010-09-15  9:08 ` [Bug c++/45665] [4.4/4.5 " paolo dot carlini at oracle dot com
  4 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu dot org @ 2010-09-15  9:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo at gcc dot gnu dot org  2010-09-15 09:06 -------
Subject: Bug 45665

Author: paolo
Date: Wed Sep 15 09:06:32 2010
New Revision: 164299

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164299
Log:
/cp
2010-09-15  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/45665
        * decl.c (grokdeclarator): Check build_memfn_type return value
        for error_mark_node.

/testsuite
2010-09-15  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/45665
        * g++.dg/template/crash103.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/template/crash103.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/45665] [4.4/4.5 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code
  2010-09-14  0:48 [Bug c++/45665] New: [4.4/4.5/4.6 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2010-09-15  9:07 ` paolo at gcc dot gnu dot org
@ 2010-09-15  9:08 ` paolo dot carlini at oracle dot com
  4 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-09-15  9:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo dot carlini at oracle dot com  2010-09-15 09:08 -------
Fixed for 4.6.0.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|paolo dot carlini at oracle |unassigned at gcc dot gnu
                   |dot com                     |dot org
             Status|ASSIGNED                    |NEW
      Known to fail|4.4.5 4.5.2 4.6.0           |4.4.5 4.5.2
      Known to work|4.4.2                       |4.4.2 4.6.0
            Summary|[4.4/4.5/4.6 Regression]    |[4.4/4.5 Regression] ICE:
                   |ICE: tree check: expected   |tree check: expected class
                   |class 'type', have          |'type', have 'exceptional'
                   |'exceptional' (error_mark)  |(error_mark) in
                   |in grokdeclarator, at       |grokdeclarator, at
                   |cp/decl.c:8797 on invalid   |cp/decl.c:8797 on invalid
                   |code                        |code
   Target Milestone|4.4.5                       |4.6.0


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


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

* [Bug c++/45665] [4.4/4.5 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code
       [not found] <bug-45665-4@http.gcc.gnu.org/bugzilla/>
  2011-03-25 19:53 ` jakub at gcc dot gnu.org
@ 2011-03-31 16:43 ` jason at gcc dot gnu.org
  1 sibling, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-31 16:43 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jason at gcc dot gnu.org
      Known to work|                            |
         Resolution|                            |FIXED
   Target Milestone|4.6.1                       |4.6.0
      Known to fail|                            |

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-31 16:13:45 UTC ---
Doesn't seem worth backporting a fix for ice after valid error.


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

* [Bug c++/45665] [4.4/4.5 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code
       [not found] <bug-45665-4@http.gcc.gnu.org/bugzilla/>
@ 2011-03-25 19:53 ` jakub at gcc dot gnu.org
  2011-03-31 16:43 ` jason at gcc dot gnu.org
  1 sibling, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-03-25 19:53 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.0                       |4.6.1

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-25 19:52:07 UTC ---
GCC 4.6.0 is being released, adjusting target milestone.


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

end of thread, other threads:[~2011-03-31 16:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-14  0:48 [Bug c++/45665] New: [4.4/4.5/4.6 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in grokdeclarator, at cp/decl.c:8797 on invalid code zsojka at seznam dot cz
2010-09-14 10:18 ` [Bug c++/45665] " rguenth at gcc dot gnu dot org
2010-09-14 10:46 ` paolo dot carlini at oracle dot com
2010-09-14 16:03 ` hjl dot tools at gmail dot com
2010-09-15  9:07 ` paolo at gcc dot gnu dot org
2010-09-15  9:08 ` [Bug c++/45665] [4.4/4.5 " paolo dot carlini at oracle dot com
     [not found] <bug-45665-4@http.gcc.gnu.org/bugzilla/>
2011-03-25 19:53 ` jakub at gcc dot gnu.org
2011-03-31 16:43 ` jason at gcc dot gnu.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).