This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13925] [3.4?/3.5 Regression] Bug while befriending specializations


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-30 03:52 -------
With a compiler from last night I get:
pr13925.cc: In function `void N::f(T) [with T = int]':
pr13925.cc:13: error: expected primary-expression before "long"
pr13925.cc:13: error: expected `;' before "long"
pr13925.cc:13:   instantiated from here
pr13925.cc:6: internal compiler error: Segmentation fault
Please submit a full bug report,with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
With 3.3.1, gcc rejects the code so the reject is not a regression but the ICE is.
I did not test 3.4 but I suspect that 3.4 is also effected as there are only differences in the C++ 
front-end and they do not effect where the ICE is:
#0  instantiate_decl (d=0x40128804, defer_ok=0) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
cp/pt.c:11140
#1  0x080aa107 in instantiate_pending_templates () at /home/gates/pinskia/src/gnu/gcc/src/
gcc/cp/pt.c:11231
#2  0x080d7236 in finish_file () at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/decl2.c:2582
#3  0x083a4f69 in toplev_main (argc=1074963412, argv=0x85a7849) at /home/gates/pinskia/
src/gnu/gcc/src/gcc/toplev.c:1812
#4  0x0817e0de in main (argc=1074963412, argv=0x4012a3d4) at /home/gates/pinskia/src/
gnu/gcc/src/gcc/main.c:35

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-30 03:52:32
               date|                            |
            Summary|Bug while befriending       |[3.4?/3.5 Regression] Bug
                   |specializations             |while befriending
                   |                            |specializations
   Target Milestone|---                         |3.4.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]