public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46658] New: internal compiler error on cp/init.c
@ 2010-11-25 12:10 zaravalle at gmail dot com
  2010-11-25 12:14 ` [Bug c++/46658] " zaravalle at gmail dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: zaravalle at gmail dot com @ 2010-11-25 12:10 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: internal compiler error on cp/init.c
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zaravalle@gmail.com


Created attachment 22527
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22527
stderr output from g++

The compilation ends with the following message:

analyzer.cpp: In member function 'bool
nsAnalysis::Analyzer::ReadDictionary(READER&)':
analyzer.cpp:543:77: internal compiler error: in build_value_init, at
cp/init.c:299


You will find attached the data you request


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

* [Bug c++/46658] internal compiler error on cp/init.c
  2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
@ 2010-11-25 12:14 ` zaravalle at gmail dot com
  2010-11-25 12:23 ` zaravalle at gmail dot com
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: zaravalle at gmail dot com @ 2010-11-25 12:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Zara <zaravalle at gmail dot com> 2010-11-25 11:51:51 UTC ---
Created attachment 22528
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22528
preprocessed output from g++

The file has been compressed with tar/gz


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

* [Bug c++/46658] internal compiler error on cp/init.c
  2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
  2010-11-25 12:14 ` [Bug c++/46658] " zaravalle at gmail dot com
@ 2010-11-25 12:23 ` zaravalle at gmail dot com
  2010-11-25 14:09 ` paolo.carlini at oracle dot com
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: zaravalle at gmail dot com @ 2010-11-25 12:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Zara <zaravalle at gmail dot com> 2010-11-25 11:53:29 UTC ---
gcc has been downloaded form git mirror.


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

* [Bug c++/46658] internal compiler error on cp/init.c
  2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
  2010-11-25 12:14 ` [Bug c++/46658] " zaravalle at gmail dot com
  2010-11-25 12:23 ` zaravalle at gmail dot com
@ 2010-11-25 14:09 ` paolo.carlini at oracle dot com
  2010-11-25 14:44 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-11-25 14:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-11-25 13:40:30 UTC ---
It would be nice if you could reduce the testcase a bit by using Delta or other
means: http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction


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

* [Bug c++/46658] internal compiler error on cp/init.c
  2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
                   ` (2 preceding siblings ...)
  2010-11-25 14:09 ` paolo.carlini at oracle dot com
@ 2010-11-25 14:44 ` rguenth at gcc dot gnu.org
  2010-11-25 14:45 ` zaravalle at gmail dot com
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-25 14:44 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.11.25 14:08:35
     Ever Confirmed|0                           |1

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-25 14:08:35 UTC ---
Reducing.


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

* [Bug c++/46658] internal compiler error on cp/init.c
  2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
                   ` (3 preceding siblings ...)
  2010-11-25 14:44 ` rguenth at gcc dot gnu.org
@ 2010-11-25 14:45 ` zaravalle at gmail dot com
  2010-11-25 14:46 ` zaravalle at gmail dot com
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: zaravalle at gmail dot com @ 2010-11-25 14:45 UTC (permalink / raw)
  To: gcc-bugs

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

Zara <zaravalle at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #22528|0                           |1
        is obsolete|                            |

--- Comment #5 from Zara <zaravalle at gmail dot com> 2010-11-25 14:40:40 UTC ---
Created attachment 22529
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22529
Soruce code stripped to the ber minimum (192 bytes)

I'm sorry, I have attached the minimum source code, but I think you will find
it useful:

If you remove the template part, it will compile OK.
The template part seems to be the root of the problem!


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

* [Bug c++/46658] internal compiler error on cp/init.c
  2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
                   ` (4 preceding siblings ...)
  2010-11-25 14:45 ` zaravalle at gmail dot com
@ 2010-11-25 14:46 ` zaravalle at gmail dot com
  2010-11-25 15:10 ` zaravalle at gmail dot com
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: zaravalle at gmail dot com @ 2010-11-25 14:46 UTC (permalink / raw)
  To: gcc-bugs

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

Zara <zaravalle at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #22527|0                           |1
        is obsolete|                            |

--- Comment #6 from Zara <zaravalle at gmail dot com> 2010-11-25 14:42:27 UTC ---
Created attachment 22530
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22530
gcc report data


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

* [Bug c++/46658] internal compiler error on cp/init.c
  2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
                   ` (5 preceding siblings ...)
  2010-11-25 14:46 ` zaravalle at gmail dot com
@ 2010-11-25 15:10 ` zaravalle at gmail dot com
  2010-11-25 15:12 ` zaravalle at gmail dot com
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: zaravalle at gmail dot com @ 2010-11-25 15:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Zara <zaravalle at gmail dot com> 2010-11-25 14:44:12 UTC ---
Created attachment 22531
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22531
And this is the intemediate file!! 335 bytes

I hope this minimum case will be just what you need to correct the bug.

Have luck!


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

* [Bug c++/46658] internal compiler error on cp/init.c
  2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
                   ` (6 preceding siblings ...)
  2010-11-25 15:10 ` zaravalle at gmail dot com
@ 2010-11-25 15:12 ` zaravalle at gmail dot com
  2010-11-25 15:25 ` [Bug c++/46658] [4.6 Regression] " rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: zaravalle at gmail dot com @ 2010-11-25 15:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Zara <zaravalle at gmail dot com> 2010-11-25 14:44:59 UTC ---
(In reply to comment #3)
> It would be nice if you could reduce the testcase a bit by using Delta or other
> means: http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction

Manually reduced it, see the new attachments


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

* [Bug c++/46658] [4.6 Regression] internal compiler error on cp/init.c
  2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
                   ` (7 preceding siblings ...)
  2010-11-25 15:12 ` zaravalle at gmail dot com
@ 2010-11-25 15:25 ` rguenth at gcc dot gnu.org
  2010-11-25 15:56 ` hjl.tools at gmail dot com
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-25 15:25 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.5.1
   Target Milestone|---                         |4.6.0
            Summary|internal compiler error on  |[4.6 Regression] internal
                   |cp/init.c                   |compiler error on cp/init.c

--- Comment #9 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-25 14:46:15 UTC ---
Reduced testcase:

typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
template<class T> class scoped_array {
    void reset(T * p = 0)     { }
};
typedef uint16_t SequenceIndex;
typedef uint32_t SequenceMapIndex;
class Analyzer  {
    template <typename READER>
        bool ReadDictionary( READER& reader );
    scoped_array<SequenceIndex> map_from_2_hints_to_composite_sequence;
    SequenceMapIndex number_of_composite_sequences;
};
template <typename READER>
bool Analyzer::ReadDictionary( READER &reader )
{
  const SequenceMapIndex ntt 
    = ( number_of_composite_sequences + SequenceMapIndex( 1 ) ) 
    * ( number_of_composite_sequences + 1 );
  map_from_2_hints_to_composite_sequence.reset(new SequenceIndex[ntt]());
}


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

* [Bug c++/46658] [4.6 Regression] internal compiler error on cp/init.c
  2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
                   ` (8 preceding siblings ...)
  2010-11-25 15:25 ` [Bug c++/46658] [4.6 Regression] " rguenth at gcc dot gnu.org
@ 2010-11-25 15:56 ` hjl.tools at gmail dot com
  2011-01-03 20:27 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-25 15:56 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

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

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-25 15:34:44 UTC ---
It is caused by revision 163381:

http://gcc.gnu.org/ml/gcc-cvs/2010-08/msg00593.html


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

* [Bug c++/46658] [4.6 Regression] internal compiler error on cp/init.c
  2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
                   ` (9 preceding siblings ...)
  2010-11-25 15:56 ` hjl.tools at gmail dot com
@ 2011-01-03 20:27 ` rguenth at gcc dot gnu.org
  2011-01-11 11:40 ` jason at gcc dot gnu.org
  2011-01-11 15:45 ` paolo.carlini at oracle dot com
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-03 20:27 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

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


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

* [Bug c++/46658] [4.6 Regression] internal compiler error on cp/init.c
  2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
                   ` (10 preceding siblings ...)
  2011-01-03 20:27 ` rguenth at gcc dot gnu.org
@ 2011-01-11 11:40 ` jason at gcc dot gnu.org
  2011-01-11 15:45 ` paolo.carlini at oracle dot com
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu.org @ 2011-01-11 11:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> 2011-01-11 11:30:10 UTC ---
Author: jason
Date: Tue Jan 11 11:30:07 2011
New Revision: 168655

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168655
Log:
    PR c++/46658
    * init.c (build_new_1): Handle value-init in templates differently.

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


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

* [Bug c++/46658] [4.6 Regression] internal compiler error on cp/init.c
  2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
                   ` (11 preceding siblings ...)
  2011-01-11 11:40 ` jason at gcc dot gnu.org
@ 2011-01-11 15:45 ` paolo.carlini at oracle dot com
  12 siblings, 0 replies; 14+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-01-11 15:45 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

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

--- Comment #12 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-01-11 15:44:07 UTC ---
Thus fixed, I suppose.


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

end of thread, other threads:[~2011-01-11 15:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-25 12:10 [Bug c++/46658] New: internal compiler error on cp/init.c zaravalle at gmail dot com
2010-11-25 12:14 ` [Bug c++/46658] " zaravalle at gmail dot com
2010-11-25 12:23 ` zaravalle at gmail dot com
2010-11-25 14:09 ` paolo.carlini at oracle dot com
2010-11-25 14:44 ` rguenth at gcc dot gnu.org
2010-11-25 14:45 ` zaravalle at gmail dot com
2010-11-25 14:46 ` zaravalle at gmail dot com
2010-11-25 15:10 ` zaravalle at gmail dot com
2010-11-25 15:12 ` zaravalle at gmail dot com
2010-11-25 15:25 ` [Bug c++/46658] [4.6 Regression] " rguenth at gcc dot gnu.org
2010-11-25 15:56 ` hjl.tools at gmail dot com
2011-01-03 20:27 ` rguenth at gcc dot gnu.org
2011-01-11 11:40 ` jason at gcc dot gnu.org
2011-01-11 15:45 ` paolo.carlini at oracle dot com

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