public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/60552] New: integer operation result is out of range      ? -__gnu_cxx::__numeric_traits<_ValueT>::__min        ^
@ 2014-03-17 11:09 addepalli.prasad at tcs dot com
  2014-03-17 11:28 ` [Bug other/60552] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: addepalli.prasad at tcs dot com @ 2014-03-17 11:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60552
           Summary: integer operation result is out of range      ?
                    -__gnu_cxx::__numeric_traits<_ValueT>::__min        ^
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: addepalli.prasad at tcs dot com

When I am trying to build a cpp file with the gcc compiler. I am getting the
below errors:

/include/c++/4.4.3/bits/locale_facets.tcc",line 453: warning #61-D: 
       integer operation result is out of range
        ? -__gnu_cxx::__numeric_traits<_ValueT>::__min
          ^
       detected during:
            instantiation of "std::num_get< _CharT, _InIter> ::iter_type
                   std::num_get< _CharT, _InIter>
                   ::_M_extract_int(std::num_get< _CharT, _InIter>
                   ::iter_type, std::num_get< _CharT, _InIter> ::iter_type,
                   std::ios_base &, std::ios_base::iostate &, _ValueT &) const
                   [with _CharT=char, _InIter=std::istreambuf_iterator<
                   std::basic_streambuf< char, std::char_traits< char> >
                   ::char_type, std::basic_streambuf< char, std::char_traits<
                   char> > ::traits_type> , _ValueT=long]" at line 2168 of
                   "/proj/DTE_releases/9.63.0.1/cade/cade_B_tools_gcc-ppc/Linux
                   /i686/bin/../lib/gcc/powerpc-eabi/4.4.3/../../../../powerpc-
                   eabi/include/c++/4.4.3/bits/locale_facets.h"
            instantiation of "std::num_get< _CharT, _InIter> ::iter_type
                   std::num_get< _CharT, _InIter> ::do_get(std::num_get<
                   _CharT, _InIter> ::iter_type, std::num_get< _CharT,
                   _InIter> ::iter_type, std::ios_base &,
                   std::ios_base::iostate &, long &) const [with _CharT=char,
                   _InIter=std::istreambuf_iterator< std::basic_streambuf<
                   char, std::char_traits< char> > ::char_type,
                   std::basic_streambuf< char, std::char_traits< char> >
                   ::traits_type> ]" 



/include/c++/4.4.3/ext/numeric_traits.h: In copy constructor
'__gnu_cxx::__numeric_traits<_Value>::__numeric_traits(const
__gnu_cxx::__numeric_traits<_Value>&)':


powerpc-eabi/include/c++/4.4.3/ext/numeric_traits.h:126: error: '_Tp' was not
declared in this scope

include/c++/4.4.3/ext/numeric_traits.h:126: error: '_Tp' was not declared in
this scope

accum1.cpp: In function 'int accum1_test(int, char**)':
accum1.cpp:17: warning: comparison between signed and unsigned integer
expressions
accum1.cpp: At global scope:
accum1.cpp:25: error: specialization of 'char*
std::allocator<_Alloc>::_att_tmpl_text() const [with _Tp = char]' after
instantiation
accum1.cpp:27: error: specialization of 'char*
std::allocator<_Alloc>::_att_tmpl_text() const [with _Tp = wchar_t]' after
instantiation
accum1.cpp:32: error: specialization of 'char* std::basic_string<_CharT,
_Traits, _Alloc>::_att_tmpl_text() const [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>]' after instantiation
accum1.cpp:33: error: specialization of 'char*
std::collate<_CharT>::_att_tmpl_text() const [with _CharT = char]' after
instantiation
accum1.cpp:37: error: specialization of 'char*
std::collate_byname<_CharT>::_att_tmpl_text() const [with _CharT = char]' after
instantiation
accum1.cpp:38: error: specialization of 'char* std::basic_streambuf<_CharT,
_Traits>::_att_tmpl_text() const [with _CharT = char, _Traits =
std::char_traits<char>]' after instantiation
accum1.cpp:39: error: specialization of 'char*
std::numpunct<_CharT>::_att_tmpl_text() const [with _CharT = char]' after
instantiation
accum1.cpp:44: error: specialization of 'char*
std::numpunct_byname<_CharT>::_att_tmpl_text() const [with _CharT = char]'
after instantiation
accum1.cpp:45: error: specialization of 'char* std::num_get<_CharT,
_InIter>::_att_tmpl_text() const [with _CharT = char, _InIter =
std::istreambuf_iterator<char, std::char_traits<char> >]' after instantiation
accum1.cpp:46: error: specialization of 'char* std::num_put<_CharT,
_OutIter>::_att_tmpl_text() const [with _CharT = char, _OutIter =
std::ostreambuf_iterator<char, std::char_traits<char> >]' after instantiation
accum1.cpp:47: error: specialization of 'char* std::basic_ios<_CharT,
_Traits>::_att_tmpl_text() const [with _CharT = char, _Traits =
std::char_traits<char>]' after instantiation
accum1.cpp:48: error: specialization of 'char* std::basic_ostream<_CharT,
_Traits>::_att_tmpl_text() const [with _CharT = char, _Traits =
std::char_traits<char>]' after instantiation
accum1.cpp:49: error: no member function '_att_tmpl_text' declared in
'std::basic_ostream<char, std::char_traits<char> >::sentry'
accum1.cpp:50: error: specialization of 'char* std::basic_istream<_CharT,
_Traits>::_att_tmpl_text() const [with _CharT = char, _Traits =
std::char_traits<char>]' after instantiation
accum1.cpp:54: error: no member function '_att_tmpl_text' declared in
'std::basic_istream<char, std::char_traits<char> >::sentry'
accum1.cpp:55: error: specialization of 'char* std::basic_iostream<_CharT,
_Traits>::_att_tmpl_text() const [with _CharT = char, _Traits =
std::char_traits<char>]' after instantiation
accum1.cpp:145: error: '_Tp' was not declared in this scope
accum1.cpp:145: error: template argument 1 is invalid
accum1.cpp:145: error: too many template-parameter-lists
accum1.cpp:146: error: '_Tp' was not declared in this scope
accum1.cpp:146: error: template argument 1 is invalid
accum1.cpp:146: error: too many template-parameter-lists
accum1.cpp:167: error: declaration of 'class _CharT'
accum1.cpp:167: error:  shadows template parm 'class _CharT'
accum1.cpp:167: error: declaration of 'class _Traits'
accum1.cpp:167: error:  shadows template parm 'class _Traits'
accum1.cpp:167: error: 'std::basic_ostream<_CharT, _Traits>::sentry' is not a
type
accum1.cpp:167: error: too many template-parameter-lists
accum1.cpp:168: error: declaration of 'class _CharT'
accum1.cpp:168: error:  shadows template parm 'class _CharT'
accum1.cpp:168: error: declaration of 'class _Traits'
accum1.cpp:168: error:  shadows template parm 'class _Traits'
accum1.cpp:168: error: 'std::basic_ostream<_CharT, _Traits>::sentry' is not a
type
accum1.cpp:168: error: too many template-parameter-lists
accum1.cpp:171: error: declaration of 'class _CharT'
accum1.cpp:171: error:  shadows template parm 'class _CharT'
accum1.cpp:171: error: declaration of 'class _Traits'
accum1.cpp:171: error:  shadows template parm 'class _Traits'


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

* [Bug other/60552] integer operation result is out of range      ? -__gnu_cxx::__numeric_traits<_ValueT>::__min        ^
  2014-03-17 11:09 [Bug other/60552] New: integer operation result is out of range ? -__gnu_cxx::__numeric_traits<_ValueT>::__min ^ addepalli.prasad at tcs dot com
@ 2014-03-17 11:28 ` redi at gcc dot gnu.org
  2014-03-17 12:36 ` addepalli.prasad at tcs dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2014-03-17 11:28 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
You haven't provided the requested information requested at
http://gcc.gnu.org/bugs/ - please read that before reporting bugs.

/include/c++/4.4.3/bits/locale_facets.tcc",line 453: warning #61-D: 
       integer operation result is out of range
        ? -__gnu_cxx::__numeric_traits<_ValueT>::__min
          ^

This is not an error from GCC 4.4.3, are you sure that's what you're using?

GCC 4.4.3 has been unsupported for several years, please either update to a
newer release or report this to the vendor you got your compiler from.


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

* [Bug other/60552] integer operation result is out of range      ? -__gnu_cxx::__numeric_traits<_ValueT>::__min        ^
  2014-03-17 11:09 [Bug other/60552] New: integer operation result is out of range ? -__gnu_cxx::__numeric_traits<_ValueT>::__min ^ addepalli.prasad at tcs dot com
  2014-03-17 11:28 ` [Bug other/60552] " redi at gcc dot gnu.org
@ 2014-03-17 12:36 ` addepalli.prasad at tcs dot com
  2014-03-17 12:37 ` addepalli.prasad at tcs dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: addepalli.prasad at tcs dot com @ 2014-03-17 12:36 UTC (permalink / raw)
  To: gcc-bugs

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

Sivaprasad <addepalli.prasad at tcs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major


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

* [Bug other/60552] integer operation result is out of range      ? -__gnu_cxx::__numeric_traits<_ValueT>::__min        ^
  2014-03-17 11:09 [Bug other/60552] New: integer operation result is out of range ? -__gnu_cxx::__numeric_traits<_ValueT>::__min ^ addepalli.prasad at tcs dot com
  2014-03-17 11:28 ` [Bug other/60552] " redi at gcc dot gnu.org
  2014-03-17 12:36 ` addepalli.prasad at tcs dot com
@ 2014-03-17 12:37 ` addepalli.prasad at tcs dot com
  2014-03-17 13:24 ` redi at gcc dot gnu.org
  2014-03-18  0:07 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: addepalli.prasad at tcs dot com @ 2014-03-17 12:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Sivaprasad <addepalli.prasad at tcs dot com> ---
with GCC 4.6.3 also, we are facing same problems.


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

* [Bug other/60552] integer operation result is out of range      ? -__gnu_cxx::__numeric_traits<_ValueT>::__min        ^
  2014-03-17 11:09 [Bug other/60552] New: integer operation result is out of range ? -__gnu_cxx::__numeric_traits<_ValueT>::__min ^ addepalli.prasad at tcs dot com
                   ` (2 preceding siblings ...)
  2014-03-17 12:37 ` addepalli.prasad at tcs dot com
@ 2014-03-17 13:24 ` redi at gcc dot gnu.org
  2014-03-18  0:07 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2014-03-17 13:24 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2014-03-17
     Ever confirmed|0                           |1
           Severity|major                       |normal

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
4.6.3 is also unsupported, and you still haven't read http://gcc.gnu.org/bugs/


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

* [Bug other/60552] integer operation result is out of range      ? -__gnu_cxx::__numeric_traits<_ValueT>::__min        ^
  2014-03-17 11:09 [Bug other/60552] New: integer operation result is out of range ? -__gnu_cxx::__numeric_traits<_ValueT>::__min ^ addepalli.prasad at tcs dot com
                   ` (3 preceding siblings ...)
  2014-03-17 13:24 ` redi at gcc dot gnu.org
@ 2014-03-18  0:07 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2014-03-18  0:07 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Sivaprasad from comment #0)
> /include/c++/4.4.3/bits/locale_facets.tcc",line 453: warning #61-D: 

I have no idea where "#61-D" comes from, that's not GCC.

> /include/c++/4.4.3/ext/numeric_traits.h: In copy constructor

That is not a proper header path, you're not showing the real output.

> '__gnu_cxx::__numeric_traits<_Value>::__numeric_traits(const
> __gnu_cxx::__numeric_traits<_Value>&)':
> 
> 
> powerpc-eabi/include/c++/4.4.3/ext/numeric_traits.h:126: error: '_Tp' was
> not declared in this scope

That is not a correct path, and _Tp is not used on line 126.

> accum1.cpp: At global scope:
> accum1.cpp:25: error: specialization of 'char*
> std::allocator<_Alloc>::_att_tmpl_text() const [with _Tp = char]' after
> instantiation

_att_tmpl_text is not a member of std::allocator, so you're doing something
weird in the code you're not showing.

> accum1.cpp:32: error: specialization of 'char* std::basic_string<_CharT,
> _Traits, _Alloc>::_att_tmpl_text() const [with _CharT = char, _Traits =
> std::char_traits<char>, _Alloc = std::allocator<char>]' after instantiation

???

> accum1.cpp:33: error: specialization of 'char*
> std::collate<_CharT>::_att_tmpl_text() const [with _CharT = char]' after
> instantiation

???

> accum1.cpp:37: error: specialization of 'char*
> std::collate_byname<_CharT>::_att_tmpl_text() const [with _CharT = char]'
> after instantiation

???

Your code seems to be very broken.


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

end of thread, other threads:[~2014-03-18  0:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-17 11:09 [Bug other/60552] New: integer operation result is out of range ? -__gnu_cxx::__numeric_traits<_ValueT>::__min ^ addepalli.prasad at tcs dot com
2014-03-17 11:28 ` [Bug other/60552] " redi at gcc dot gnu.org
2014-03-17 12:36 ` addepalli.prasad at tcs dot com
2014-03-17 12:37 ` addepalli.prasad at tcs dot com
2014-03-17 13:24 ` redi at gcc dot gnu.org
2014-03-18  0:07 ` redi 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).