From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45856 invoked by alias); 5 Mar 2018 08:34:43 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 45839 invoked by uid 89); 5 Mar 2018 08:34:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:32abe58, H*i:sk:32abe58, H*c:alternative, D*126.com X-HELO: mail-vk0-f53.google.com Received: from mail-vk0-f53.google.com (HELO mail-vk0-f53.google.com) (209.85.213.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 05 Mar 2018 08:34:41 +0000 Received: by mail-vk0-f53.google.com with SMTP id b65so9259145vka.2 for ; Mon, 05 Mar 2018 00:34:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Xqm51g9PWzunqQes/uz9Ekn+EJkehULMj7ya3Ku1CmU=; b=eNoMPNId0BxKprMTGb3VFGSJV6WxRTzboXRWiFNzDDZ04NDIwzLNyOvR/dn1Ha37si +VMmvLG16qNjgKh7uQLslayWQtybLA+NV/bxEKmLnFrBimyxQlX5PJURAxEjCcH4/6g1 P2iG0mzTIyts+g/1KpbP9KtfMiGP7nWjIMs2CpJbKWykvrl3Vi/F9JmTf8OmpHI1/KQ4 TcvZv0RVPL3tteKv30X5MxOoDECBNgTHvE+7C23jzaiIwVxAL3jUECVcIYlAR7xvyRsd LfSw5c8fHOMeCSzMQArxJy/pzCYv4vEF8acfiE8pD67hGYKgjZTSqohqO0HLOm9ik5Jq ZjcA== X-Gm-Message-State: APf1xPBPUpC4ZEg5imB++6CdY7zmSU7+QImBM/48oC5r34tYDeBr2PQ+ Yr+Z/Xf4x+EYQcPqnJoT/84vEhwO3ts4+OhpPjc= X-Google-Smtp-Source: AG47ELtZXNkKM4MLTCxKaqBzMR2jU9wySnGkwcv4GT8xTJgRo9MOHRi3+NmgWWWNgYrejO5Y/GolQv3KIPX4/Cy9fzQ= X-Received: by 10.31.125.205 with SMTP id y196mr9591209vkc.57.1520238879355; Mon, 05 Mar 2018 00:34:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.14.26 with HTTP; Mon, 5 Mar 2018 00:34:38 -0800 (PST) In-Reply-To: <32abe58b.8533.161f5482360.Coremail.lh_mouse@126.com> References: <3ed0f3ed.8032.161f534a8dd.Coremail.lh_mouse@126.com> <32abe58b.8533.161f5482360.Coremail.lh_mouse@126.com> From: Satya Prakash Prasad Date: Mon, 05 Mar 2018 08:34:00 -0000 Message-ID: Subject: Re: C++ - compilation error for all implicit conversion To: Liu Hao Cc: gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg00045.txt.bz2 Thanks a lot - I just picked up all compiler flags that we make use in our project. Thanks a lot for the information as provided. Regards, Prakash On Mon, Mar 5, 2018 at 2:00 PM, Liu Hao wrote: > =E5=9C=A8 2018=E5=B9=B403=E6=9C=8805=E6=97=A5 16:17, Satya Prakash Prasad= =E5=86=99=E9=81=93: > > I still does not throws an error: > > (... abridged ...) > > > > /c/tools/mingw64/bin/c++ -std=3Dc++11 -Wall -Wconversion -Wpedantic > > -Wextra -w -Wsign-compare -Wnarrowing -Wreturn-type -Wno-int-conversion > > -Wtype-limits -Wuseless-cast -Wsign-conversion -Wextra -Wsign-conversion > > cast.cpp > > > > > > Your `-w` option suppressed all warnings. > > > -- > Best regards, > LH_Mouse >