public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/38089]  New: g++ crash on invalid code
@ 2008-11-12  6:04 doko at ubuntu dot com
  2008-11-12  6:05 ` [Bug c++/38089] " doko at ubuntu dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: doko at ubuntu dot com @ 2008-11-12  6:04 UTC (permalink / raw)
  To: gcc-bugs

seen with 4.1, and newer

g++ test.cpp 
test.cpp:17: error: specialization of 'template<class T> T
MyNS::MyClass::test()' in different namespace
test.cpp:8: error:   from definition of 'template<class T> T
MyNS::MyClass::test()'
test.cpp:18: confused by earlier errors, bailing out


-- 
           Summary: g++ crash on invalid code
           Product: gcc
           Version: 4.2.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: doko at ubuntu dot com


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


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

* [Bug c++/38089] g++ crash on invalid code
  2008-11-12  6:04 [Bug c++/38089] New: g++ crash on invalid code doko at ubuntu dot com
@ 2008-11-12  6:05 ` doko at ubuntu dot com
  2008-12-24  4:28 ` [Bug c++/38089] [4.2/4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: doko at ubuntu dot com @ 2008-11-12  6:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from doko at ubuntu dot com  2008-11-12 06:04 -------
Created an attachment (id=16657)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16657&action=view)
test case


-- 


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


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

* [Bug c++/38089] [4.2/4.3/4.4 Regression] g++ crash on invalid code
  2008-11-12  6:04 [Bug c++/38089] New: g++ crash on invalid code doko at ubuntu dot com
  2008-11-12  6:05 ` [Bug c++/38089] " doko at ubuntu dot com
@ 2008-12-24  4:28 ` pinskia at gcc dot gnu dot org
  2008-12-24  4:37 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-24  4:28 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery
      Known to work|                            |4.0.1
            Summary|g++ crash on invalid code   |[4.2/4.3/4.4 Regression] g++
                   |                            |crash on invalid code
   Target Milestone|---                         |4.2.5


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


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

* [Bug c++/38089] [4.2/4.3/4.4 Regression] g++ crash on invalid code
  2008-11-12  6:04 [Bug c++/38089] New: g++ crash on invalid code doko at ubuntu dot com
  2008-11-12  6:05 ` [Bug c++/38089] " doko at ubuntu dot com
  2008-12-24  4:28 ` [Bug c++/38089] [4.2/4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
@ 2008-12-24  4:37 ` pinskia at gcc dot gnu dot org
  2008-12-29 22:12 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-24  4:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-12-24 04:35 -------
Reduced testcase:
class basic_string
{
  basic_string(const int __s);
};
namespace MyNS {
  class MyClass {
    template <typename T>
    T test() { }
  };
}
template <>
basic_string MyNS::MyClass::test(){ return 1;}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-12-24 04:35:02
               date|                            |


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


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

* [Bug c++/38089] [4.2/4.3/4.4 Regression] g++ crash on invalid code
  2008-11-12  6:04 [Bug c++/38089] New: g++ crash on invalid code doko at ubuntu dot com
                   ` (2 preceding siblings ...)
  2008-12-24  4:37 ` pinskia at gcc dot gnu dot org
@ 2008-12-29 22:12 ` rguenth at gcc dot gnu dot org
  2009-03-31 21:02 ` [Bug c++/38089] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-12-29 22:12 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug c++/38089] [4.3/4.4/4.5 Regression] g++ crash on invalid code
  2008-11-12  6:04 [Bug c++/38089] New: g++ crash on invalid code doko at ubuntu dot com
                   ` (3 preceding siblings ...)
  2008-12-29 22:12 ` rguenth at gcc dot gnu dot org
@ 2009-03-31 21:02 ` jsm28 at gcc dot gnu dot org
  2009-06-01 19:02 ` simartin at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 21:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jsm28 at gcc dot gnu dot org  2009-03-31 21:02 -------
Closing 4.2 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.2/4.3/4.4/4.5 Regression]|[4.3/4.4/4.5 Regression] g++
                   |g++ crash on invalid code   |crash on invalid code
   Target Milestone|4.2.5                       |4.3.4


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


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

* [Bug c++/38089] [4.3/4.4/4.5 Regression] g++ crash on invalid code
  2008-11-12  6:04 [Bug c++/38089] New: g++ crash on invalid code doko at ubuntu dot com
                   ` (4 preceding siblings ...)
  2009-03-31 21:02 ` [Bug c++/38089] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
@ 2009-06-01 19:02 ` simartin at gcc dot gnu dot org
  2009-06-02  5:37 ` simartin at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: simartin at gcc dot gnu dot org @ 2009-06-01 19:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from simartin at gcc dot gnu dot org  2009-06-01 19:02 -------
Patch posted here:
  http://gcc.gnu.org/ml/gcc-patches/2009-06/msg00102.html


-- 

simartin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simartin at gcc dot gnu dot
                   |                            |org
   Last reconfirmed|2008-12-24 04:35:02         |2009-06-01 19:02:25
               date|                            |


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


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

* [Bug c++/38089] [4.3/4.4/4.5 Regression] g++ crash on invalid code
  2008-11-12  6:04 [Bug c++/38089] New: g++ crash on invalid code doko at ubuntu dot com
                   ` (5 preceding siblings ...)
  2009-06-01 19:02 ` simartin at gcc dot gnu dot org
@ 2009-06-02  5:37 ` simartin at gcc dot gnu dot org
  2009-06-02 23:48 ` [Bug c++/38089] [4.3/4.4 " simartin at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: simartin at gcc dot gnu dot org @ 2009-06-02  5:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from simartin at gcc dot gnu dot org  2009-06-02 05:37 -------
Subject: Bug 38089

Author: simartin
Date: Tue Jun  2 05:37:17 2009
New Revision: 148069

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148069
Log:
gcc/cp/

2009-06-02  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/38089
        * pt.c (register_specialization): Properly setup DECL_CONTEXT for
        specializations in an invalid namespace.

gcc/testsuite/

2009-06-02  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/38089
        * g++.dg/template/spec36.C: New test.

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


-- 


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


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

* [Bug c++/38089] [4.3/4.4 Regression] g++ crash on invalid code
  2008-11-12  6:04 [Bug c++/38089] New: g++ crash on invalid code doko at ubuntu dot com
                   ` (6 preceding siblings ...)
  2009-06-02  5:37 ` simartin at gcc dot gnu dot org
@ 2009-06-02 23:48 ` simartin at gcc dot gnu dot org
  2009-08-04 12:47 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:27 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: simartin at gcc dot gnu dot org @ 2009-06-02 23:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from simartin at gcc dot gnu dot org  2009-06-02 23:48 -------
Fixed in 4.5.0.


-- 

simartin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|4.0.1                       |4.0.1 4.5.0
            Summary|[4.3/4.4/4.5 Regression] g++|[4.3/4.4 Regression] g++
                   |crash on invalid code       |crash on invalid code


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


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

* [Bug c++/38089] [4.3/4.4 Regression] g++ crash on invalid code
  2008-11-12  6:04 [Bug c++/38089] New: g++ crash on invalid code doko at ubuntu dot com
                   ` (7 preceding siblings ...)
  2009-06-02 23:48 ` [Bug c++/38089] [4.3/4.4 " simartin at gcc dot gnu dot org
@ 2009-08-04 12:47 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:27 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2009-08-04 12:29 -------
GCC 4.3.4 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.4                       |4.3.5


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


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

* [Bug c++/38089] [4.3/4.4 Regression] g++ crash on invalid code
  2008-11-12  6:04 [Bug c++/38089] New: g++ crash on invalid code doko at ubuntu dot com
                   ` (8 preceding siblings ...)
  2009-08-04 12:47 ` rguenth at gcc dot gnu dot org
@ 2010-05-22 18:27 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-22 18:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rguenth at gcc dot gnu dot org  2010-05-22 18:12 -------
GCC 4.3.5 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.5                       |4.3.6


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


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

end of thread, other threads:[~2010-05-22 18:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-12  6:04 [Bug c++/38089] New: g++ crash on invalid code doko at ubuntu dot com
2008-11-12  6:05 ` [Bug c++/38089] " doko at ubuntu dot com
2008-12-24  4:28 ` [Bug c++/38089] [4.2/4.3/4.4 Regression] " pinskia at gcc dot gnu dot org
2008-12-24  4:37 ` pinskia at gcc dot gnu dot org
2008-12-29 22:12 ` rguenth at gcc dot gnu dot org
2009-03-31 21:02 ` [Bug c++/38089] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-06-01 19:02 ` simartin at gcc dot gnu dot org
2009-06-02  5:37 ` simartin at gcc dot gnu dot org
2009-06-02 23:48 ` [Bug c++/38089] [4.3/4.4 " simartin at gcc dot gnu dot org
2009-08-04 12:47 ` rguenth at gcc dot gnu dot org
2010-05-22 18:27 ` rguenth 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).