------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-23 01:44 -------
Confirmed, a regression from 3.3.
In 4.0 and above we get either the following two errors:
On GNU/Linux:
/tmp/cc9KVEBk.o: In function
`Test<int>::Test()':t.cc:(.gnu.linkonce.t._ZN4TestIiEC1Ev[Test<int>::Test()]+0x33):
undefined reference to `Test<int>::Test()::__FUNCTION__'

On Darwin:
/var/tmp//ccM7VBrQ.s:71:non-relocatable subtraction expression,
"__ZZN4TestIiEC1EvE12__FUNCTION__" minus "L00000000002$pb"
/var/tmp//ccM7VBrQ.s:71:symbol: "__ZZN4TestIiEC1EvE12__FUNCTION__" can't be
undefined in a subtraction expression
/var/tmp//ccM7VBrQ.s:70:non-relocatable subtraction expression,
"__ZZN4TestIiEC1EvE12__FUNCTION__" minus "L00000000002$pb"
/var/tmp//ccM7VBrQ.s:70:symbol: "__ZZN4TestIiEC1EvE12__FUNCTION__" can't be
undefined in a subtraction expression


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|gcc version 3.4.4 20050721  |
                   |(Red Hat 3.4.4-2)           |
   GCC host triplet|i386-redhat-linux           |
           Keywords|                            |assemble-failure, link-
                   |                            |failure, rejects-valid
      Known to fail|                            |3.4.0 4.0.0 4.1.0 4.2.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-23 01:44:38
               date|                            |
            Summary|Syntax error using          |[3.4/4.0/4.1/4.2 Regression]
                   |__FUNCTION__ in catch       |Syntax error using
                   |handler                     |__FUNCTION__ in catch
                   |                            |handler
   Target Milestone|---                         |4.0.3


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

Reply via email to