public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50020] New: [C++0x] internal compiler error range for in templated class
@ 2011-08-08  1:23 jarrydb at cse dot unsw.edu.au
  2011-08-08  8:50 ` [Bug c++/50020] " paolo.carlini at oracle dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jarrydb at cse dot unsw.edu.au @ 2011-08-08  1:23 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [C++0x] internal compiler error range for in templated
                    class
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jarrydb@cse.unsw.edu.au
              Host: x86_64-unknown-linux-gnu
            Target: x86_64-unknown-linux-gnu
             Build: x86_64-unknown-linux-gnu


Created attachment 24947
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24947
range for in templated class error

Using built-in specs.
COLLECT_GCC=/home/jarrydb/current/soft/install-latest/bin/gcc
COLLECT_LTO_WRAPPER=/home/jarrydb/current/soft/install-latest/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/jarrydb/current/soft/src/gcc-git/configure
--prefix=/home/jarrydb/current/soft/install-latest --disable-multilib
--enable-languages=c,c++,go
Thread model: posix
gcc version 4.7.0 20110807 (experimental) (GCC)

Using gcc svn revision 177550, this error:

init_list2.cpp: In member function ‘void A<T, N>::f(int, int)’:
init_list2.cpp:24:19: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

is produced by this code:

g++ init_list2.ii -std=gnu++0x

#include <vector>
#include <cstdint>
#include <cstdlib>

template <typename T, size_t N>
class A
{
  private:
  std::vector<uint16_t> m_v;

  public:
  void
  f(int a, int b)
  {
    for (auto v : m_v)
    {
    }
  }
};

int main()
{
  A a;
  return 0;
}

The full preprocessed source is attached.


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

* [Bug c++/50020] [C++0x] internal compiler error range for in templated class
  2011-08-08  1:23 [Bug c++/50020] New: [C++0x] internal compiler error range for in templated class jarrydb at cse dot unsw.edu.au
@ 2011-08-08  8:50 ` paolo.carlini at oracle dot com
  2011-08-08 14:56 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-08-08  8:50 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.08.08 08:50:23
                 CC|                            |jason at gcc dot gnu.org
     Ever Confirmed|0                           |1
           Severity|critical                    |normal


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

* [Bug c++/50020] [C++0x] internal compiler error range for in templated class
  2011-08-08  1:23 [Bug c++/50020] New: [C++0x] internal compiler error range for in templated class jarrydb at cse dot unsw.edu.au
  2011-08-08  8:50 ` [Bug c++/50020] " paolo.carlini at oracle dot com
@ 2011-08-08 14:56 ` jason at gcc dot gnu.org
  2011-08-08 15:33 ` jason at gcc dot gnu.org
  2011-08-08 18:09 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-08 14:56 UTC (permalink / raw)
  To: gcc-bugs

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

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

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


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

* [Bug c++/50020] [C++0x] internal compiler error range for in templated class
  2011-08-08  1:23 [Bug c++/50020] New: [C++0x] internal compiler error range for in templated class jarrydb at cse dot unsw.edu.au
  2011-08-08  8:50 ` [Bug c++/50020] " paolo.carlini at oracle dot com
  2011-08-08 14:56 ` jason at gcc dot gnu.org
@ 2011-08-08 15:33 ` jason at gcc dot gnu.org
  2011-08-08 18:09 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-08 15:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-08 15:32:27 UTC ---
Author: jason
Date: Mon Aug  8 15:32:21 2011
New Revision: 177567

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177567
Log:
    PR c++/50020
    * semantics.c (finish_call_expr): Don't look at 'this' if we
    had an explicit object argument.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/range-for20.C


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

* [Bug c++/50020] [C++0x] internal compiler error range for in templated class
  2011-08-08  1:23 [Bug c++/50020] New: [C++0x] internal compiler error range for in templated class jarrydb at cse dot unsw.edu.au
                   ` (2 preceding siblings ...)
  2011-08-08 15:33 ` jason at gcc dot gnu.org
@ 2011-08-08 18:09 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-08-08 18:09 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-08 18:08:54 UTC ---
Fixed.


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

end of thread, other threads:[~2011-08-08 18:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-08  1:23 [Bug c++/50020] New: [C++0x] internal compiler error range for in templated class jarrydb at cse dot unsw.edu.au
2011-08-08  8:50 ` [Bug c++/50020] " paolo.carlini at oracle dot com
2011-08-08 14:56 ` jason at gcc dot gnu.org
2011-08-08 15:33 ` jason at gcc dot gnu.org
2011-08-08 18:09 ` 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).