public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23307] New: ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager
@ 2005-08-10  5:06 flash at pobox dot com
  2005-08-10  5:08 ` [Bug c++/23307] " flash at pobox dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: flash at pobox dot com @ 2005-08-10  5:06 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2660 bytes --]

The file below gives "internal compiler error: in cp_parser_template_id, at cp/parser.c:8564".  It's a 
Delta-reduced version of a preprocessed version of the Boost file remote_call_manager.cpp, but 
missing some header files.

class remote_call_manager: private noncopyable
{
    template<class R>
    static R execute_now(function<R> &rFunctor);
           inline void remote_call_manager::execute_now<void>(function<void> &rFunctor)

    This sounds like bug 9781, among others, but that's supposedly fixed.
    Here's the session:

312> /opt/gcc401chk/bin/g++ -v  ../cpp/bugfiles/GCC_bugfiles/error/
105390_remote_call_manager_min.ii
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --enable-checking --prefix=/opt/gcc401chk --enable-languages=c,c+
+
Thread model: posix
gcc version 4.0.1
 /opt/gcc401chk/libexec/gcc/i686-pc-linux-gnu/4.0.1/cc1plus -fpreprocessed ../cpp/bugfiles/
GCC_bugfiles/error/105390_remote_call_manager_min.ii -quiet -dumpbase 
105390_remote_call_manager_min.ii -mtune=pentiumpro -auxbase 105390_remote_call_manager_min 
-version -o /tmp/ccsSRpV5.s
GNU C++ version 4.0.1 (i686-pc-linux-gnu)
        compiled by GNU C version 3.3.4 (pre 3.3.5 20040809).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
../cpp/bugfiles/GCC_bugfiles/error/105390_remote_call_manager_min.ii:2: error: expected class-name 
before ‘{’ token
../cpp/bugfiles/GCC_bugfiles/error/105390_remote_call_manager_min.ii:4: error: ‘function’ was not 
declared in this scope
../cpp/bugfiles/GCC_bugfiles/error/105390_remote_call_manager_min.ii:4: error: expected primary-
expression before ‘>’ token
../cpp/bugfiles/GCC_bugfiles/error/105390_remote_call_manager_min.ii:4: error: ‘rFunctor’ was not 
declared in this scope
../cpp/bugfiles/GCC_bugfiles/error/105390_remote_call_manager_min.ii:4: error: template declaration 
of ‘R remote_call_manager::execute_now’
../cpp/bugfiles/GCC_bugfiles/error/105390_remote_call_manager_min.ii:5: internal compiler error: in 
cp_parser_template_id, at cp/parser.c:8564

-- 
           Summary: ICE in cp_parser_template_id, at cp/parser.c:8564 with
                    Boost remote_call_manager
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: flash at pobox dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c++/23307] ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager
  2005-08-10  5:06 [Bug c++/23307] New: ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager flash at pobox dot com
@ 2005-08-10  5:08 ` flash at pobox dot com
  2005-08-10  8:37 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: flash at pobox dot com @ 2005-08-10  5:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From flash at pobox dot com  2005-08-10 05:08 -------
Created an attachment (id=9458)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9458&action=view)
105390_remote_call_manager_min.ii

PalmSource bug 105390.

-- 


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


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

* [Bug c++/23307] ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager
  2005-08-10  5:06 [Bug c++/23307] New: ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager flash at pobox dot com
  2005-08-10  5:08 ` [Bug c++/23307] " flash at pobox dot com
@ 2005-08-10  8:37 ` rguenth at gcc dot gnu dot org
  2005-08-10  8:58 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-08-10  8:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-08-10 08:37 -------
g++ (GCC) 4.0.2 20050728 does not ICE for me on the reduced testcase, but instead
mainline does with a slightly different ICE:

pr23307.ii:5: internal compiler error: in cp_parser_template_id, at cp/parser.c:8660

#0  fancy_abort (file=0xc417b2 "../../gcc/gcc/cp/parser.c", line=8660,
    function=0xc43a64 "cp_parser_template_id") at diagnostic.c:590
#1  0x00000000004f4c03 in cp_parser_template_id (parser=0x2a958963c0,
    template_keyword_p=0 '\0', check_dependency_p=1 '\001',
    is_declaration=0 '\0') at parser.c:8658
#2  0x00000000004f9609 in cp_parser_class_name (parser=0x2a958963c0,
    typename_keyword_p=0 '\0', template_keyword_p=0 '\0', tag_type=none_type,
    check_dependency_p=1 '\001', class_head_p=0 '\0', is_declaration=0 '\0')
    at parser.c:12521

I question the use of asserts in paths of the compiler where we might deal
with errorneus input.  Why not return error_mark_node instead?  Which fixes
the ICE btw. -- I'll prepare a patch.

Richard.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |4.1.0
      Known to work|                            |4.0.2
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-10 08:37:14
               date|                            |


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


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

* [Bug c++/23307] ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager
  2005-08-10  5:06 [Bug c++/23307] New: ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager flash at pobox dot com
  2005-08-10  5:08 ` [Bug c++/23307] " flash at pobox dot com
  2005-08-10  8:37 ` rguenth at gcc dot gnu dot org
@ 2005-08-10  8:58 ` rguenth at gcc dot gnu dot org
  2005-08-10 10:54 ` [Bug c++/23307] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-08-10  8:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-08-10 08:58 -------
Patch submitted.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2005-
                   |                            |08/msg00560.html
           Keywords|                            |patch


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


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

* [Bug c++/23307] [3.4/4.0/4.1 Regression] ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager
  2005-08-10  5:06 [Bug c++/23307] New: ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager flash at pobox dot com
                   ` (2 preceding siblings ...)
  2005-08-10  8:58 ` rguenth at gcc dot gnu dot org
@ 2005-08-10 10:54 ` pinskia at gcc dot gnu dot org
  2005-08-29  9:20 ` rguenth at gcc dot gnu dot org
  2005-09-27 16:14 ` mmitchel at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-10 10:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-10 10:53 -------
4.0.0 ICEs for me so does 3.4.0. 3.3.3 does not.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|i686-pc-linux-gnu           |
   GCC host triplet|i686-pc-linux-gnu           |
 GCC target triplet|i686-pc-linux-gnu           |
      Known to fail|4.1.0                       |4.1.0 3.4.0 4.0.0
      Known to work|4.0.2                       |3.3.3
            Summary|ICE in                      |[3.4/4.0/4.1 Regression] ICE
                   |cp_parser_template_id, at   |in cp_parser_template_id, at
                   |cp/parser.c:8564 with Boost |cp/parser.c:8564 with Boost
                   |remote_call_manager         |remote_call_manager
   Target Milestone|---                         |4.0.2


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


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

* [Bug c++/23307] [3.4/4.0/4.1 Regression] ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager
  2005-08-10  5:06 [Bug c++/23307] New: ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager flash at pobox dot com
                   ` (3 preceding siblings ...)
  2005-08-10 10:54 ` [Bug c++/23307] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-08-29  9:20 ` rguenth at gcc dot gnu dot org
  2005-09-27 16:14 ` mmitchel at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-08-29  9:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-08-29 09:17 -------
Nathan didn't like my fix.  Some C++ frontend guy needs to look at it then
(unassigned myself).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|rguenth at gcc dot gnu dot  |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug c++/23307] [3.4/4.0/4.1 Regression] ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager
  2005-08-10  5:06 [Bug c++/23307] New: ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager flash at pobox dot com
                   ` (4 preceding siblings ...)
  2005-08-29  9:20 ` rguenth at gcc dot gnu dot org
@ 2005-09-27 16:14 ` mmitchel at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:14 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.2                       |4.0.3


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


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

end of thread, other threads:[~2005-09-27 16:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-10  5:06 [Bug c++/23307] New: ICE in cp_parser_template_id, at cp/parser.c:8564 with Boost remote_call_manager flash at pobox dot com
2005-08-10  5:08 ` [Bug c++/23307] " flash at pobox dot com
2005-08-10  8:37 ` rguenth at gcc dot gnu dot org
2005-08-10  8:58 ` rguenth at gcc dot gnu dot org
2005-08-10 10:54 ` [Bug c++/23307] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-08-29  9:20 ` rguenth at gcc dot gnu dot org
2005-09-27 16:14 ` 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).