public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45795] New: [OOP] ICE in in gfc_add_component_ref plus bogus error message
@ 2010-09-25 22:44 sfilippone at uniroma2 dot it
  2010-09-25 23:17 ` [Bug fortran/45795] " dominiq at lps dot ens.fr
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: sfilippone at uniroma2 dot it @ 2010-09-25 22:44 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [OOP] ICE in in gfc_add_component_ref plus bogus error
                    message
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sfilippone@uniroma2.it


Created attachment 21886
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=21886
test case

Hello,
This was working until a few days ago, now it's broken: the compiler gives a
bogus error message, and then ICEs. 
Trunk at r164617:
========================================================
[sfilippo@localhost bug24]$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/gnu46/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --prefix=/usr/local/gnu46
--enable-languages=c,c++,fortran : (reconfigured) ../gcc/configure
--prefix=/usr/local/gnu46 --enable-languages=c,c++,fortran : (reconfigured)
../gcc/configure --prefix=/usr/local/gnu46 --enable-languages=c,c++,fortran :
(reconfigured) ../gcc/configure --prefix=/usr/local/gnu46
--enable-languages=c,c++,fortran : (reconfigured) ../gcc/configure
--prefix=/usr/local/gnu46 --enable-languages=c,c++,fortran,lto --no-create
--no-recursion : (reconfigured) ../gcc/configure --prefix=/usr/local/gnu46
--enable-languages=c,c++,fortran,lto --no-create --no-recursion :
(reconfigured) ../gcc/configure --prefix=/usr/local/gnu46
--enable-languages=c,c++,fortran,lto --no-create --no-recursion :
(reconfigured) ../gcc/configure --prefix=/usr/local/gnu46
--enable-languages=c,c++,fortran,lto --no-create --no-recursion
Thread model: posix
gcc version 4.6.0 20100925 (experimental) (GCC) 
[sfilippo@localhost bug24]$ gfortran -c bug24.f03      
bug24.f03:68.10:

    call b%cp_to_foo(tmp,info)
          1
Error: Type mismatch in argument 'a' at (1); passed CLASS(base) to
CLASS(s_base)
bug24.f03:11:0: internal compiler error: in gfc_add_component_ref, at
fortran/class.c:77
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug fortran/45795] [OOP] ICE in in gfc_add_component_ref plus bogus error message
  2010-09-25 22:44 [Bug fortran/45795] New: [OOP] ICE in in gfc_add_component_ref plus bogus error message sfilippone at uniroma2 dot it
@ 2010-09-25 23:17 ` dominiq at lps dot ens.fr
  2010-09-26 13:20 ` sfilippone at uniroma2 dot it
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dominiq at lps dot ens.fr @ 2010-09-25 23:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2010-09-25 21:21:19 UTC ---
It is very likely a duplicate of pr45783.


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

* [Bug fortran/45795] [OOP] ICE in in gfc_add_component_ref plus bogus error message
  2010-09-25 22:44 [Bug fortran/45795] New: [OOP] ICE in in gfc_add_component_ref plus bogus error message sfilippone at uniroma2 dot it
  2010-09-25 23:17 ` [Bug fortran/45795] " dominiq at lps dot ens.fr
@ 2010-09-26 13:20 ` sfilippone at uniroma2 dot it
  2010-09-26 13:29 ` sfilippone at uniroma2 dot it
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sfilippone at uniroma2 dot it @ 2010-09-26 13:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Salvatore Filippone <sfilippone at uniroma2 dot it> 2010-09-26 07:33:13 UTC ---
(In reply to comment #2)
> It is very likely a duplicate of pr45783.

The code compiles at r164549


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

* [Bug fortran/45795] [OOP] ICE in in gfc_add_component_ref plus bogus error message
  2010-09-25 22:44 [Bug fortran/45795] New: [OOP] ICE in in gfc_add_component_ref plus bogus error message sfilippone at uniroma2 dot it
  2010-09-25 23:17 ` [Bug fortran/45795] " dominiq at lps dot ens.fr
  2010-09-26 13:20 ` sfilippone at uniroma2 dot it
@ 2010-09-26 13:29 ` sfilippone at uniroma2 dot it
  2010-09-26 13:44 ` domob at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sfilippone at uniroma2 dot it @ 2010-09-26 13:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Salvatore Filippone <sfilippone at uniroma2 dot it> 2010-09-26 07:43:51 UTC ---
(In reply to comment #3)
> (In reply to comment #2)
> > It is very likely a duplicate of pr45783.
> 
> The code compiles at r164549

and fails at r164550....


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

* [Bug fortran/45795] [OOP] ICE in in gfc_add_component_ref plus bogus error message
  2010-09-25 22:44 [Bug fortran/45795] New: [OOP] ICE in in gfc_add_component_ref plus bogus error message sfilippone at uniroma2 dot it
                   ` (2 preceding siblings ...)
  2010-09-26 13:29 ` sfilippone at uniroma2 dot it
@ 2010-09-26 13:44 ` domob at gcc dot gnu.org
  2010-09-26 14:16 ` sfilippone at uniroma2 dot it
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: domob at gcc dot gnu.org @ 2010-09-26 13:44 UTC (permalink / raw)
  To: gcc-bugs

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

Daniel Kraft <domob at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2010.09.26 08:04:08
               date|                            |
                 CC|                            |domob at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |domob at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #5 from Daniel Kraft <domob at gcc dot gnu.org> 2010-09-26 08:04:08 UTC ---
Confirmed.  I do not yet see how this is related to my commit, but will look
into it of course.  Thanks for the report!


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

* [Bug fortran/45795] [OOP] ICE in in gfc_add_component_ref plus bogus error message
  2010-09-25 22:44 [Bug fortran/45795] New: [OOP] ICE in in gfc_add_component_ref plus bogus error message sfilippone at uniroma2 dot it
                   ` (3 preceding siblings ...)
  2010-09-26 13:44 ` domob at gcc dot gnu.org
@ 2010-09-26 14:16 ` sfilippone at uniroma2 dot it
  2010-09-27  5:57 ` domob at gcc dot gnu.org
  2010-09-27  6:34 ` domob at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: sfilippone at uniroma2 dot it @ 2010-09-26 14:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Salvatore Filippone <sfilippone at uniroma2 dot it> 2010-09-26 10:27:41 UTC ---
(In reply to comment #5)
> Confirmed.  I do not yet see how this is related to my commit, but will look
> into it of course.  Thanks for the report!
Well, considering how many times I have been burned by things that "should not
have anything to do with", it was relatively easy to home in onto the only
change in recent days that had touched SELECT TYPE :-) 

As I read somewhere "Interesting problems prove their worth by biting back"
Salvatore


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

* [Bug fortran/45795] [OOP] ICE in in gfc_add_component_ref plus bogus error message
  2010-09-25 22:44 [Bug fortran/45795] New: [OOP] ICE in in gfc_add_component_ref plus bogus error message sfilippone at uniroma2 dot it
                   ` (4 preceding siblings ...)
  2010-09-26 14:16 ` sfilippone at uniroma2 dot it
@ 2010-09-27  5:57 ` domob at gcc dot gnu.org
  2010-09-27  6:34 ` domob at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: domob at gcc dot gnu.org @ 2010-09-27  5:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Daniel Kraft <domob at gcc dot gnu.org> 2010-09-26 19:25:55 UTC ---
Author: domob
Date: Sun Sep 26 19:25:52 2010
New Revision: 164638

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164638
Log:
2010-09-26  Daniel Kraft  <d@domob.eu>

    PR fortran/45783
    PR fortran/45795
    * resolve.c (resolve_select_type): Clarify code.
    (resolve_assoc_var): Only set typespec if it is currently unknown.

2010-09-26  Daniel Kraft  <d@domob.eu>

    PR fortran/45783
    PR fortran/45795
    * gfortran.dg/select_type_18.f03: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/select_type_18.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug fortran/45795] [OOP] ICE in in gfc_add_component_ref plus bogus error message
  2010-09-25 22:44 [Bug fortran/45795] New: [OOP] ICE in in gfc_add_component_ref plus bogus error message sfilippone at uniroma2 dot it
                   ` (5 preceding siblings ...)
  2010-09-27  5:57 ` domob at gcc dot gnu.org
@ 2010-09-27  6:34 ` domob at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: domob at gcc dot gnu.org @ 2010-09-27  6:34 UTC (permalink / raw)
  To: gcc-bugs

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

Daniel Kraft <domob at gcc dot gnu.org> changed:

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

--- Comment #8 from Daniel Kraft <domob at gcc dot gnu.org> 2010-09-26 19:32:37 UTC ---
Fixed.


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

end of thread, other threads:[~2010-09-26 19:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-25 22:44 [Bug fortran/45795] New: [OOP] ICE in in gfc_add_component_ref plus bogus error message sfilippone at uniroma2 dot it
2010-09-25 23:17 ` [Bug fortran/45795] " dominiq at lps dot ens.fr
2010-09-26 13:20 ` sfilippone at uniroma2 dot it
2010-09-26 13:29 ` sfilippone at uniroma2 dot it
2010-09-26 13:44 ` domob at gcc dot gnu.org
2010-09-26 14:16 ` sfilippone at uniroma2 dot it
2010-09-27  5:57 ` domob at gcc dot gnu.org
2010-09-27  6:34 ` domob 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).