public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous
@ 2014-03-04  9:31 dilawar.s.rajput at gmail dot com
  2014-03-04  9:36 ` [Bug libstdc++/60407] " pinskia at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: dilawar.s.rajput at gmail dot com @ 2014-03-04  9:31 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60407
           Summary: call of overloaded ‘isnan’ is ambiguous
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dilawar.s.rajput at gmail dot com

In a large project, I get the following trace. This, however, compiled with
g++4.7.x. Flag -std=c++11 is enabled in both cases.


ksolve/RateTerm.h:402:29: note: candidates are:
In file included from /usr/include/features.h:371:0,
                 from /usr/include/math.h:27,
<deleted lines>
/usr/include/i386-linux-gnu/bits/mathcalls.h:235:1: note: int isnan(double)
 __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__));
 ^
In file included from /usr/include/c++/4.8/random:38:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
<deleted lines>
/usr/include/c++/4.8/cmath:626:3: note: constexpr bool std::isnan(long double)
   isnan(long double __x)
>From gcc-bugs-return-445356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 04 09:32:57 2014
Return-Path: <gcc-bugs-return-445356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3213 invoked by alias); 4 Mar 2014 09:32:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3179 invoked by uid 48); 4 Mar 2014 09:32:54 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/60405] ICE in lto1 on x86_64-linux-gnu
Date: Tue, 04 Mar 2014 09:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed
Message-ID: <bug-60405-4-W4MgTQ4Dts@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60405-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60405-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-03/txt/msg00225.txt.bz2
Content-length: 604

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`405

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2014-03-04
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  We fail to do the version check.


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

* [Bug libstdc++/60407] call of overloaded ‘isnan’ is ambiguous
  2014-03-04  9:31 [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous dilawar.s.rajput at gmail dot com
@ 2014-03-04  9:36 ` pinskia at gcc dot gnu.org
  2014-03-04  9:38 ` pinskia at gcc dot gnu.org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-03-04  9:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This sounds like you are including math.h and then later on cmath.  I don't
know if this is a valid thing to do.


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

* [Bug libstdc++/60407] call of overloaded ‘isnan’ is ambiguous
  2014-03-04  9:31 [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous dilawar.s.rajput at gmail dot com
  2014-03-04  9:36 ` [Bug libstdc++/60407] " pinskia at gcc dot gnu.org
@ 2014-03-04  9:38 ` pinskia at gcc dot gnu.org
  2014-03-04  9:39 ` redi at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-03-04  9:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
But I cannot reproduce it with what I thought it was, please provide the
preprocessed source.


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

* [Bug libstdc++/60407] call of overloaded ‘isnan’ is ambiguous
  2014-03-04  9:31 [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous dilawar.s.rajput at gmail dot com
  2014-03-04  9:36 ` [Bug libstdc++/60407] " pinskia at gcc dot gnu.org
  2014-03-04  9:38 ` pinskia at gcc dot gnu.org
@ 2014-03-04  9:39 ` redi at gcc dot gnu.org
  2014-03-04 10:22 ` dilawar.s.rajput at gmail dot com
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: redi at gcc dot gnu.org @ 2014-03-04  9:39 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2014-03-04
     Ever confirmed|0                           |1

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It's perfectly valid to do that.

Without a testcase we can't do anything, please read http://gcc.gnu.org/bugs/


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

* [Bug libstdc++/60407] call of overloaded ‘isnan’ is ambiguous
  2014-03-04  9:31 [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous dilawar.s.rajput at gmail dot com
                   ` (2 preceding siblings ...)
  2014-03-04  9:39 ` redi at gcc dot gnu.org
@ 2014-03-04 10:22 ` dilawar.s.rajput at gmail dot com
  2014-03-04 10:23 ` dilawar.s.rajput at gmail dot com
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dilawar.s.rajput at gmail dot com @ 2014-03-04 10:22 UTC (permalink / raw)
  To: gcc-bugs

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

Dilawar Singh <dilawar.s.rajput at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://gist.githubusercont
                   |                            |ent.com/dilawar/9343802/raw
                   |                            |/0eeac3f0d745af607cf1aab880
                   |                            |b315e255fa003e/gcc-bug-6040
                   |                            |7

--- Comment #4 from Dilawar Singh <dilawar.s.rajput at gmail dot com> ---
g++ info can be found here 

http://pastebin.com/raw.php?i=dA05h3ku


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

* [Bug libstdc++/60407] call of overloaded ‘isnan’ is ambiguous
  2014-03-04  9:31 [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous dilawar.s.rajput at gmail dot com
                   ` (3 preceding siblings ...)
  2014-03-04 10:22 ` dilawar.s.rajput at gmail dot com
@ 2014-03-04 10:23 ` dilawar.s.rajput at gmail dot com
  2014-03-04 11:06 ` burnus at gcc dot gnu.org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dilawar.s.rajput at gmail dot com @ 2014-03-04 10:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Dilawar Singh <dilawar.s.rajput at gmail dot com> ---
Hi,

Added the *.ii file and g++ -v output. Since one file was large, links are
given.


(In reply to Dilawar Singh from comment #4)
> g++ info can be found here 
> 
> http://pastebin.com/raw.php?i=dA05h3ku


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

* [Bug libstdc++/60407] call of overloaded ‘isnan’ is ambiguous
  2014-03-04  9:31 [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous dilawar.s.rajput at gmail dot com
                   ` (4 preceding siblings ...)
  2014-03-04 10:23 ` dilawar.s.rajput at gmail dot com
@ 2014-03-04 11:06 ` burnus at gcc dot gnu.org
  2014-03-04 11:12 ` redi at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-03-04 11:06 UTC (permalink / raw)
  To: gcc-bugs

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Dilawar Singh from comment #5)
> Added the *.ii file and g++ -v output. Since one file was large, links are
> given.
> > http://pastebin.com/raw.php?i=dA05h3ku


The g++ output I found at your pastebin link, however, I do not see the .ii
file.


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

* [Bug libstdc++/60407] call of overloaded ‘isnan’ is ambiguous
  2014-03-04  9:31 [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous dilawar.s.rajput at gmail dot com
                   ` (5 preceding siblings ...)
  2014-03-04 11:06 ` burnus at gcc dot gnu.org
@ 2014-03-04 11:12 ` redi at gcc dot gnu.org
  2014-03-04 11:21 ` [Bug libstdc++/60407] [C++11] " dilawar.s.rajput at gmail dot com
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: redi at gcc dot gnu.org @ 2014-03-04 11:12 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(Tobias, see the URL field)

Reduced:

#include <math.h>
#include <cmath>

using namespace std;

int main()
{
  double d = 1.0;
  return isnan(d);
}


isnan.cc: In function ‘int main()’:
isnan.cc:9:17: error: call of overloaded ‘isnan(double&)’ is ambiguous
   return isnan(d);
                 ^
isnan.cc:9:17: note: candidates are:
In file included from /usr/include/features.h:364:0,
                 from /usr/include/math.h:26,
                 from isnan.cc:1:
/usr/include/bits/mathcalls.h:234:1: note: int isnan(double)
 __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__));
 ^
In file included from isnan.cc:2:0:
/usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long
double)
   isnan(long double __x)
   ^
/usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double)
   isnan(double __x)
   ^
/usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float)
   isnan(float __x)
   ^
>From gcc-bugs-return-445377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 04 11:14:06 2014
Return-Path: <gcc-bugs-return-445377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8933 invoked by alias); 4 Mar 2014 11:14:05 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8887 invoked by uid 48); 4 Mar 2014 11:14:02 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/60407] [=?UTF-8?Q?C++11call of overloaded ‘isnan’ is ambiguous?Date: Tue, 04 Mar 2014 11:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: short_desc
Message-ID: <bug-60407-4-gcM0p5igSP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60407-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60407-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-03/txt/msg00246.txt.bz2
Content-length: 745

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|call of overloaded ‘isnan’  |[C++11call of overloaded
                   |is ambiguous                |‘isnan’ is ambiguous

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Dilawar Singh from comment #0)
> In a large project, I get the following trace. This, however, compiled with
> g++4.7.x. Flag -std=c++11 is enabled in both cases.

Are you sure?

I get the same result with GCC 4.7.4, but only with -std=c++11
>From gcc-bugs-return-445379-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 04 11:16:42 2014
Return-Path: <gcc-bugs-return-445379-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15588 invoked by alias); 4 Mar 2014 11:16:42 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 15418 invoked by uid 48); 4 Mar 2014 11:16:38 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/60409] [4.9 Regression] [c++1y] ICE on valid with template function
Date: Tue, 04 Mar 2014 11:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on target_milestone everconfirmed
Message-ID: <bug-60409-4-nfa621BWGX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60409-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60409-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-03/txt/msg00248.txt.bz2
Content-length: 513

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`409

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-03-04
   Target Milestone|---                         |4.9.0
     Ever confirmed|0                           |1


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

* [Bug libstdc++/60407] [C++11] call of overloaded ‘isnan’ is ambiguous
  2014-03-04  9:31 [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous dilawar.s.rajput at gmail dot com
                   ` (6 preceding siblings ...)
  2014-03-04 11:12 ` redi at gcc dot gnu.org
@ 2014-03-04 11:21 ` dilawar.s.rajput at gmail dot com
  2014-03-04 13:37 ` glisse at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: dilawar.s.rajput at gmail dot com @ 2014-03-04 11:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Dilawar Singh <dilawar.s.rajput at gmail dot com> ---
The snippet I sent you (in url filed) is a part of large project which compiles
fine on Ubuntu-server (gcc4.7.x, I am not sure about x).

I will confirm it later once I login onto server again. Once I change `isnan`
to `std::isnan` in my project, it compiles fine with my g++-4.8.1.


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

* [Bug libstdc++/60407] [C++11] call of overloaded ‘isnan’ is ambiguous
  2014-03-04  9:31 [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous dilawar.s.rajput at gmail dot com
                   ` (7 preceding siblings ...)
  2014-03-04 11:21 ` [Bug libstdc++/60407] [C++11] " dilawar.s.rajput at gmail dot com
@ 2014-03-04 13:37 ` glisse at gcc dot gnu.org
  2014-03-04 20:34 ` glisse at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: glisse at gcc dot gnu.org @ 2014-03-04 13:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Marc Glisse <glisse at gcc dot gnu.org> ---
Looks like a dup of PR 48891.


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

* [Bug libstdc++/60407] [C++11] call of overloaded ‘isnan’ is ambiguous
  2014-03-04  9:31 [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous dilawar.s.rajput at gmail dot com
                   ` (8 preceding siblings ...)
  2014-03-04 13:37 ` glisse at gcc dot gnu.org
@ 2014-03-04 20:34 ` glisse at gcc dot gnu.org
  2014-03-04 20:43 ` dilawar.s.rajput at gmail dot com
  2015-06-15 23:04 ` eugene.zelenko at gmail dot com
  11 siblings, 0 replies; 13+ messages in thread
From: glisse at gcc dot gnu.org @ 2014-03-04 20:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Marc Glisse <glisse at gcc dot gnu.org> ---
> Looks like a dup of PR 48891.

See also the comments for PR 54130.


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

* [Bug libstdc++/60407] [C++11] call of overloaded ‘isnan’ is ambiguous
  2014-03-04  9:31 [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous dilawar.s.rajput at gmail dot com
                   ` (9 preceding siblings ...)
  2014-03-04 20:34 ` glisse at gcc dot gnu.org
@ 2014-03-04 20:43 ` dilawar.s.rajput at gmail dot com
  2015-06-15 23:04 ` eugene.zelenko at gmail dot com
  11 siblings, 0 replies; 13+ messages in thread
From: dilawar.s.rajput at gmail dot com @ 2014-03-04 20:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Dilawar Singh <dilawar.s.rajput at gmail dot com> ---
(In reply to Marc Glisse from comment #10)
> Looks like a dup of PR 48891.

Yes. It is very similar to this. Fine with me if it is marked dup.

I was mistaken about gcc version on server. It is default gcc comes with
Ubuntu-Precice (gcc-4.6.3). Also -std=c++0x flag is not set with gcc-4.6.3. So
in nutshell, compiles with gcc4.6.3 without -std=c++0x, but fails with
gcc-4.8.0 with -std=c++0x. 

I mentioned -std=c++11 wrongly in first report.


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

* [Bug libstdc++/60407] [C++11] call of overloaded ‘isnan’ is ambiguous
  2014-03-04  9:31 [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous dilawar.s.rajput at gmail dot com
                   ` (10 preceding siblings ...)
  2014-03-04 20:43 ` dilawar.s.rajput at gmail dot com
@ 2015-06-15 23:04 ` eugene.zelenko at gmail dot com
  11 siblings, 0 replies; 13+ messages in thread
From: eugene.zelenko at gmail dot com @ 2015-06-15 23:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60407

Eugene Zelenko <eugene.zelenko at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eugene.zelenko at gmail dot com

--- Comment #13 from Eugene Zelenko <eugene.zelenko at gmail dot com> ---
Same problem exists in 4.9.2.

In my code combining <cmath> with <vector> (later includes os_defines.h then
features.h and mathcalls.h) produce same effect.


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

end of thread, other threads:[~2015-06-15 23:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-04  9:31 [Bug libstdc++/60407] New: call of overloaded ‘isnan’ is ambiguous dilawar.s.rajput at gmail dot com
2014-03-04  9:36 ` [Bug libstdc++/60407] " pinskia at gcc dot gnu.org
2014-03-04  9:38 ` pinskia at gcc dot gnu.org
2014-03-04  9:39 ` redi at gcc dot gnu.org
2014-03-04 10:22 ` dilawar.s.rajput at gmail dot com
2014-03-04 10:23 ` dilawar.s.rajput at gmail dot com
2014-03-04 11:06 ` burnus at gcc dot gnu.org
2014-03-04 11:12 ` redi at gcc dot gnu.org
2014-03-04 11:21 ` [Bug libstdc++/60407] [C++11] " dilawar.s.rajput at gmail dot com
2014-03-04 13:37 ` glisse at gcc dot gnu.org
2014-03-04 20:34 ` glisse at gcc dot gnu.org
2014-03-04 20:43 ` dilawar.s.rajput at gmail dot com
2015-06-15 23:04 ` eugene.zelenko at gmail dot com

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).