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]

c++/9198: [3.3, 3.4 regression] mips-sgi-irix6.5 testsuite failure in g++.dg/ext/instantiate2.C


>Number:         9198
>Category:       c++
>Synopsis:       [3.3, 3.4 regression] mips-sgi-irix6.5 testsuite failure in g++.dg/ext/instantiate2.C
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 06 11:36:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kaveh Ghazi
>Release:        gcc version 3.4 20030105 (experimental)
>Organization:
>Environment:
mips-sgi-irix6.5
>Description:
I get a testsuite error in g++.dg/ext/instantiate2.C as seen here:  http://gcc.gnu.org/ml/gcc-testresults/2003-01/msg00233.html

This appears to be a (long standing) regression from gcc-3.2.x since the same testcase appears there and does not fail.


The logfile says:
FAIL: g++.dg/ext/instantiate2.C scan-assembler
_?_ZN1AIiE1tE(:|
|       )

>How-To-Repeat:
Target mips-sgi-irix6.5 and compile instantiate2.ii with:

cc1plus -fpreprocessed instantiate2.ii -quiet -dumpbase instantiate2.C -auxbase-strip instantiate2.s -version -fmessage-length=0 -fno-implicit-templates -o instantiate2.s

and note that the scan-assembler pattern doesn't appear in the .s file.

# 1 "/caip/u58/ghazi/gcc-testing/egcc-CVS20030105/gcc/testsuite/g++.dg/ext/instantiate2.C"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "/caip/u58/ghazi/gcc-testing/egcc-CVS20030105/gcc/testsuite/g++.dg/ext/instantiate2.C"




template <class T> struct A {
  static T t;
};
template <class T> T A<T>::t = 0;
static template struct A<int>;


void test_int() { A<int>::t = 42; }


void test_char() { A<char>::t = 42; }



>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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